diff options
Diffstat (limited to 'uscript/us_debug.c')
| -rw-r--r-- | uscript/us_debug.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/uscript/us_debug.c b/uscript/us_debug.c index 496b191..6b981a4 100644 --- a/uscript/us_debug.c +++ b/uscript/us_debug.c @@ -56,6 +56,12 @@ int print_instruction(struct us_proto *proto, int idx) ); return idx + 2; } + case BC_GET_GLOBAL: + case BC_SET_GLOBAL: { + u16 loc = (u16)(proto->bytecode[idx + 1] << 8) | proto->bytecode[idx + 2]; + fprintf(stderr, "%d\n", loc); + return idx + 3; + } case BC_JMP: case BC_FALSEY_JMP: case BC_LOOP: { |
