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.
This commit is contained in:
2023-10-22 20:27:09 +01:00
parent b20ad511a0
commit aa3d1cb85f
3 changed files with 12 additions and 1 deletions

View File

@@ -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;