This commit is contained in:
simon 2017-12-28 08:43:13 -05:00
parent f4fd3866eb
commit f3b20b3a2d

View File

@ -219,8 +219,7 @@ public class CPU implements JSONSerialisable {
if (destination == 0) {
//Single operand
ip++;
instruction.execute(sourceValue, status);
instruction.execute(memory, memory.get(ip - 1), status); //For POP instruction
instruction.execute(memory, memory.get(ip - 1), status);
} else if (destination == Operand.IMMEDIATE_VALUE) {
//Destination is an immediate value