public void commit(Instruction instruction) {
		String d = ROB.getEntry(ROB.getHead()).getDest();
		String value = ROB.getValue(ROB.getHead());
		String type = instruction.getOpcode();
		if (type.equals("BEQ")) {

		} else if (type.equals("SW")) {
			String regVal = getRegister(d).getValue();
			memory.iMemory.put(regVal, value);
		} else {
			Register reg = getRegister(d);
			reg.setValue(value);

		}
		ROB.getEntry(ROB.getHead()).setReady(true);
		ROB.commit();
		for (int i = 0; i < regROB.length; i++) {
			if (regROB[i] == getRegisterInt(d)) {
				regROB[i] = -1;
			}
		}
		for (int i = 0; i < reservationStations.size(); i++) {
			if (reservationStations.get(i).equals("" + getRegisterInt(d))) {
				reservationStations.get(i).setBusy(false);
			}
		}

	}