From bc4ec9ea5f1d7b479d1eff085dea69715f299e5a Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Sun, 23 Jul 2023 09:41:11 -0700 Subject: [PATCH] (uxn.c) JSI makes use of SET() macro --- src/uxn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uxn.c b/src/uxn.c index b026fc1..a725c72 100644 --- a/src/uxn.c +++ b/src/uxn.c @@ -53,7 +53,7 @@ uxn_eval(Uxn *u, Uint16 pc) case 0x00: /* BRK */ return 1; case 0xff: /* JCI */ pc += !!s->dat[--s->ptr] * PEEK2(ram + pc) + 2; break; case 0xfe: /* JMI */ pc += PEEK2(ram + pc) + 2; break; - case 0xfd: /* JSI */ s = &u->rst; PUSH2(pc + 2) pc += PEEK2(ram + pc) + 2; break; + case 0xfd: /* JSI */ SET(0, 2) PUT2(0, pc + 2) pc += PEEK2(ram + pc) + 2; break; case 0xfc: /* LIT */ SET(0, 1) PUT(0, ram[pc++]) break; case 0xfb: /* LIT2 */ SET(0, 2) PUT2(0, PEEK2(ram + pc)) pc += 2; break; case 0xfa: /* LITr */ SET(0, 1) PUT(0, ram[pc++]) break;