aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/inst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inst.c b/src/inst.c
index a935d8a..59ca795 100644
--- a/src/inst.c
+++ b/src/inst.c
@@ -323,7 +323,7 @@ inst_t inst_read_bytecode(darr_t *darr)
return (inst_t){0};
inst_t inst = {0};
opcode_t opcode = darr->data[darr->used++];
- if (opcode > OP_HALT || opcode == NUMBER_OF_OPCODES)
+ if (opcode > OP_HALT || opcode == NUMBER_OF_OPCODES || opcode < OP_NOOP)
// Translate to NOOP
return inst;
// Read operands