Fixed negative variables handled incorrectly

This commit is contained in:
2026-05-26 18:01:49 +10:00
parent 69175e801a
commit 190477add8
6 changed files with 40 additions and 3 deletions
+1
View File
@@ -22,6 +22,7 @@ typedef enum Toy_OpcodeType {
TOY_OPCODE_MULTIPLY,
TOY_OPCODE_DIVIDE,
TOY_OPCODE_MODULO,
TOY_OPCODE_INVERT, //negative numbers
//comparison instructions
TOY_OPCODE_COMPARE_EQUAL,