From 7a8fb2564c30a167e74c8f30fa115a1d4fd6e033 Mon Sep 17 00:00:00 2001 From: Sandy Brownlee Date: Wed, 28 Sep 2022 10:44:30 +0100 Subject: [PATCH] Added NOP to opcodes so ordinals match the book --- .../src/main/java/triangle/abstractMachine/OpCode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Triangle.AbstractMachine/src/main/java/triangle/abstractMachine/OpCode.java b/Triangle.AbstractMachine/src/main/java/triangle/abstractMachine/OpCode.java index 1d82e34..23ca257 100644 --- a/Triangle.AbstractMachine/src/main/java/triangle/abstractMachine/OpCode.java +++ b/Triangle.AbstractMachine/src/main/java/triangle/abstractMachine/OpCode.java @@ -1,5 +1,5 @@ package triangle.abstractMachine; public enum OpCode { - LOAD, LOADA, LOADI, LOADL, STORE, STOREI, CALL, CALLI, RETURN, PUSH, POP, JUMP, JUMPI, JUMPIF, HALT + LOAD, LOADA, LOADI, LOADL, STORE, STOREI, CALL, CALLI, RETURN, NOP, PUSH, POP, JUMP, JUMPI, JUMPIF, HALT }