From 00bfa63688583ea1d43dbd5bef26aa97570947ff Mon Sep 17 00:00:00 2001 From: mryouse Date: Tue, 6 Jun 2023 21:58:47 -0400 Subject: add more disassemble ops --- dbg.d | 14 ++++++++++++-- 1 file 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; -- cgit v1.2.3