diff options
| author | mryouse | 2023-06-06 21:58:47 -0400 |
|---|---|---|
| committer | mryouse | 2023-06-06 21:58:47 -0400 |
| commit | 00bfa63688583ea1d43dbd5bef26aa97570947ff (patch) | |
| tree | f512cea20e87bfebebfb48e4883da7f1e1218569 /dbg.d | |
| parent | a09fa18356785aa16121328fc9f66d41d6ca2543 (diff) | |
add more disassemble ops
Diffstat (limited to 'dbg.d')
| -rw-r--r-- | dbg.d | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -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; |
