Added NOP to opcodes so ordinals match the book

java11^2
Sandy Brownlee 2 years ago
parent 6a30c4db8b
commit 7a8fb2564c
  1. 2
      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
}