diff --git a/lang/bytecode.c b/lang/bytecode.c index 74491c5..9095b10 100644 --- a/lang/bytecode.c +++ b/lang/bytecode.c @@ -6,9 +6,9 @@ #include "number.h" enum opcodes { - OP_RET = 0x00, OP_NUM = 0x01, OP_DROP = 0x02, + OP_RET = 0x03, }; // clang-format off @@ -30,6 +30,7 @@ struct object **pos_stack = stack; unsigned char op = OP_RET; while ((op = *pos_code++) != OP_RET) { + // Skip over NOP, ASCII and unknown OPs switch (op) { case OP_NUM: { int num = 0;