public void commit(){
		if(isEmpty()) 
			return;
		ReOrderObject roo = getFirst();
		//check if branch, then check for flushing
		//if passes all checks, commit changes to memory
		if (roo.isReady()){
			removeFirst();
			int cond = roo.regOrMem(); 
			if (cond==0){
				//memory
				Memory m = Processor.getProcessor().getDataMemory();
				m.write((short) roo.getDestination(), roo.getValue());
			}
			else if (cond==1){
				//register
				RegisterFile rf = Processor.getProcessor().getRegisterFile();
				rf.getRegister(roo.getDestination()).setVal(roo.getValue());
			}
			
			if (roo.isAlterPC()){
				Processor.getProcessor().setInstructionAddress(roo.getValPC());
				//flush and reset
			}
			
		}
	}