aboutsummaryrefslogtreecommitdiffstats
path: root/clox/src/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'clox/src/debug.c')
-rw-r--r--clox/src/debug.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clox/src/debug.c b/clox/src/debug.c
index 788e759..5663091 100644
--- a/clox/src/debug.c
+++ b/clox/src/debug.c
@@ -42,6 +42,10 @@ int disassembleInstruction(Chunk *chunk, int offset) {
return simpleInstruction("OP_TRUE", offset);
case OP_FALSE:
return simpleInstruction("OP_FALSE", offset);
+ case OP_POP:
+ return simpleInstruction("OP_POP", offset);
+ case OP_DEFINE_GLOBAL:
+ return constantInstruction("OP_DEFINE_GLOBAL", chunk, offset);
case OP_EQUAL:
return simpleInstruction("OP_EQUAL", offset);
case OP_GREATER:
@@ -60,6 +64,8 @@ int disassembleInstruction(Chunk *chunk, int offset) {
return simpleInstruction("OP_NOT", offset);
case OP_NEGATE:
return simpleInstruction("OP_NEGATE", offset);
+ case OP_PRINT:
+ return simpleInstruction("OP_PRINT", offset);
case OP_RETURN:
return simpleInstruction("OP_RETURN", offset);
default: