aboutsummaryrefslogtreecommitdiff
path: root/dbg.d
diff options
context:
space:
mode:
authormryouse2023-06-06 21:58:47 -0400
committermryouse2023-06-06 21:58:47 -0400
commit00bfa63688583ea1d43dbd5bef26aa97570947ff (patch)
treef512cea20e87bfebebfb48e4883da7f1e1218569 /dbg.d
parenta09fa18356785aa16121328fc9f66d41d6ca2543 (diff)
add more disassemble ops
Diffstat (limited to 'dbg.d')
-rw-r--r--dbg.d14
1 files changed, 12 insertions, 2 deletions
diff --git a/dbg.d b/dbg.d
index 66250b6..4223678 100644
--- a/dbg.d
+++ b/dbg.d
@@ -8,8 +8,8 @@ import parser;
//import dbg;
//import value;
-//bool DEBUG = true;
-bool DEBUG = false;
+bool DEBUG = true;
+//bool DEBUG = false;
bool REPL = false;
@@ -231,6 +231,16 @@ int disassemble(Chunk chunk, int offset) {
return simpleInstruction("OP_CONCAT", offset);
case OpCode.OP_APPEND:
return simpleInstruction("OP_APPEND", offset);
+ case OpCode.OP_PRINT:
+ return simpleInstruction("OP_PRINT", offset);
+ case OpCode.OP_MOST:
+ return simpleInstruction("OP_MOST", offset);
+ case OpCode.OP_LAST:
+ return simpleInstruction("OP_LAST", offset);
+ case OpCode.OP_REVERSE:
+ return simpleInstruction("OP_REVERSE", offset);
+ case OpCode.OP_EQUAL:
+ return simpleInstruction("OP_EQUAL", offset);
default:
writeln("unknown opcode?");
return offset + 1;