diff options
author | ubq323 <ubq323@ubq323.website> | 2024-06-25 16:24:29 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2024-06-25 16:24:29 +0100 |
commit | a14bf1188c4cee23db44a590ada52aa8778a2a3f (patch) | |
tree | a5f5d3ecd18427e12f0133ed98e3e251fdf3a58d /dis.c | |
parent | e48386449b1f50c9f9d9b0645c8c469c1d4cbe4a (diff) |
add setting locals
Diffstat (limited to 'dis.c')
-rw-r--r-- | dis.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -44,6 +44,11 @@ static size_t disasm_instr_h(Chunk *ch, size_t ip, int depth) { printf("getlocal #%d\n",ix); break; } + case OP_SETLOCAL: { + uint8_t ix = ch->bc.d[ip++]; + printf("setlocal #%d\n",ix); + break; + } case OP_SETGLOBAL: { uint8_t ix = ch->bc.d[ip++]; printf("setglobal #%d\t; ",ix); |