mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-16 09:16:44 +00:00
Fixes #51
This commit is contained in:
parent
f4fd3866eb
commit
f3b20b3a2d
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user