aboutsummaryrefslogtreecommitdiff
path: root/dbg.d
diff options
context:
space:
mode:
authormryouse2023-05-26 19:21:25 +0000
committermryouse2023-05-26 19:21:25 +0000
commitb57c1630da58d55dbb7855d9de76f776600038ea (patch)
treeda8c22b43de8d4afe9c6caf2120c953e5213c254 /dbg.d
parent6261be78421d6a842b21653b069ca7b032f8fecc (diff)
add more opcodes, preparing for HOF
Diffstat (limited to 'dbg.d')
-rw-r--r--dbg.d14
1 files changed, 14 insertions, 0 deletions
diff --git a/dbg.d b/dbg.d
index 64669ea..7e92eb5 100644
--- a/dbg.d
+++ b/dbg.d
@@ -153,6 +153,20 @@ int disassemble(Chunk chunk, int offset) {
ubyte inst = chunk.code[offset];
switch (inst) {
+ case OpCode.OP_IS_NIL:
+ return simpleInstruction("OP_IS_NIL", offset);
+ case OpCode.OP_DUPLICATE:
+ return simpleInstruction("OP_DUPLICATE", offset);
+ case OpCode.OP_DUPLICATE_2:
+ return simpleInstruction("OP_DUPLICATE_2", offset);
+ case OpCode.OP_ROTATE_N:
+ return simpleInstruction("OP_ROTATE_N", offset);
+ case OpCode.OP_ZERO:
+ return simpleInstruction("OP_ZERO", offset);
+ case OpCode.OP_INCREMENT:
+ return simpleInstruction("OP_INCREMENT", offset);
+ case OpCode.OP_LIST_N:
+ return simpleInstruction("OP_LIST_N", offset);
case OpCode.OP_DEF_LOCAL:
return byteInstruction("OP_DEF_LOCAL", chunk, offset);
case OpCode.OP_GET_LOCAL: