This commit is contained in:
simon 2017-12-29 13:39:13 -05:00
parent 18aaf91991
commit 72d43fccf7

View File

@ -237,7 +237,7 @@ public class CPU implements JSONSerialisable {
} else if (destination <= registerSetSize * 2) { } else if (destination <= registerSetSize * 2) {
//Destination is [reg] //Destination is [reg]
ip++; ip++;
instruction.execute(memory, registerSet.get(destination - registerSetSize), memory, sourceValue, status); instruction.execute(memory, registerSet.get(destination - registerSetSize), sourceValue, status);
} else { } else {
//Assuming that destination is [reg + x] //Assuming that destination is [reg + x]
ip += 2; ip += 2;