From 6d30c64216cd4d0b1b2a20a167d85c7fc6534378 Mon Sep 17 00:00:00 2001 From: iamcheeseman Date: Tue, 7 Apr 2026 10:46:07 -0400 Subject: microscript: add arrays --- uscript/us_debug.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'uscript/us_debug.c') diff --git a/uscript/us_debug.c b/uscript/us_debug.c index 8d5dfe3..d31669b 100644 --- a/uscript/us_debug.c +++ b/uscript/us_debug.c @@ -42,6 +42,7 @@ int print_instruction(struct us_proto *proto, int idx) ); return idx + 2 + upvalc * 2; } + case BC_ARR: case BC_SET_UPVAL: case BC_GET_UPVAL: case BC_SET_LOCAL: @@ -82,6 +83,8 @@ int print_instruction(struct us_proto *proto, int idx) case BC_TRUE: case BC_FALSE: case BC_ZILCH: + case BC_GET_INDEX: + case BC_SET_INDEX: case BC_POP: case BC_POP_UPVAL: case BC_ADD: -- cgit v1.3-2-g0d8e