From b57c1630da58d55dbb7855d9de76f776600038ea Mon Sep 17 00:00:00 2001 From: mryouse Date: Fri, 26 May 2023 19:21:25 +0000 Subject: add more opcodes, preparing for HOF --- dbg.d | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'dbg.d') 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: -- cgit v1.2.3