mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-12-18 17:19:05 +00:00
Fixes #51
This commit is contained in:
@@ -219,8 +219,7 @@ public class CPU implements JSONSerialisable {
|
|||||||
if (destination == 0) {
|
if (destination == 0) {
|
||||||
//Single operand
|
//Single operand
|
||||||
ip++;
|
ip++;
|
||||||
instruction.execute(sourceValue, status);
|
instruction.execute(memory, memory.get(ip - 1), status);
|
||||||
instruction.execute(memory, memory.get(ip - 1), status); //For POP instruction
|
|
||||||
} else if (destination == Operand.IMMEDIATE_VALUE) {
|
} else if (destination == Operand.IMMEDIATE_VALUE) {
|
||||||
//Destination is an immediate value
|
//Destination is an immediate value
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user