aboutsummaryrefslogtreecommitdiff
path: root/src/inst.h
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-10-22 20:27:09 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-10-22 20:28:10 +0100
commitaa3d1cb85f7940738468db37211c6841d90e6d4b (patch)
tree23d450fe342e43be24f6b6a25c45d67a929892cc /src/inst.h
parentb20ad511a0a375da9dd92542e58a4a2cd0721d9f (diff)
downloadovm-aa3d1cb85f7940738468db37211c6841d90e6d4b.tar.gz
ovm-aa3d1cb85f7940738468db37211c6841d90e6d4b.tar.bz2
ovm-aa3d1cb85f7940738468db37211c6841d90e6d4b.zip
Added NUMBER_OF_OPCODES which aids in compilation errors
If I add a new operand I want the build system to be more helpful in finding the places I need to change to make it work.
Diffstat (limited to 'src/inst.h')
-rw-r--r--src/inst.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/inst.h b/src/inst.h
index 16374ee..61d7ede 100644
--- a/src/inst.h
+++ b/src/inst.h
@@ -65,6 +65,8 @@ typedef enum
OP_EQ_HWORD,
OP_EQ_WORD,
+ // Should not be an opcode
+ NUMBER_OF_OPCODES,
OP_HALT = 0b11111111, // top of the byte is a HALT
} opcode_t;