diff options
| author | mryouse | 2023-05-26 19:21:25 +0000 |
|---|---|---|
| committer | mryouse | 2023-05-26 19:21:25 +0000 |
| commit | b57c1630da58d55dbb7855d9de76f776600038ea (patch) | |
| tree | da8c22b43de8d4afe9c6caf2120c953e5213c254 /dbg.d | |
| parent | 6261be78421d6a842b21653b069ca7b032f8fecc (diff) | |
add more opcodes, preparing for HOF
Diffstat (limited to 'dbg.d')
| -rw-r--r-- | dbg.d | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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: |
