Added more instructions for the parser to emit and refactored the code in doing so.

This commit is contained in:
2022-08-28 15:37:56 -05:00
parent c2111e2b88
commit 0d3f8a460e
5 changed files with 141 additions and 74 deletions
+2 -1
View File
@@ -13,7 +13,8 @@ Instruction instructions[OPCODECOUNT] = {
{ "cmp", CMP, Reg, Reg | Constant },
{ "in", IN, Constant | Reg, None},
{ "out", OUT, None, None},
{ "nop", NOP, None, None}
{ "nop", NOP, None, None},
{ "jz", JZ, Address, None}
};
unsigned char GetInstructionMask(TokenType type, TokenClass parameterOneType) {