jimka2001.bsky.social
@jimka2001.bsky.social
Also line 104 should be NCODE, not POP. You want to read the index of the global from the code, not from the stack. right?
github.com/gcatlin/simp...
github.com
August 22, 2025 at 6:27 AM
I think line 127 should be vm->stack rather than vm->locals

vm->stack[vm->fp + NCODE(vm)] = POP(vm);

github.com/gcatlin/simp...
github.com
August 21, 2025 at 8:12 PM