computeExp(instruction);
setDestination(instruction);
pcChanged = checkJump(instruction);
}
else if (instruction != HackAssemblerTranslator.NOP)
throw new ProgramException("At line " + PC.get() +
": Illegal instruction");
if (!pcChanged) {
short newPC = (short)(PC.get() + 1);
if (newPC < 0 || newPC >= Definitions.ROM_SIZE)
throw new ProgramException("At line " + PC.get() +
": Can't continue past last line");
PC.setValueAt(0, newPC, true);
}
time++;