mirror of
https://git.sr.ht/~rabbits/uxn
synced 2024-11-30 01:33:01 +00:00
(uxn.c) JSI makes use of SET() macro
This commit is contained in:
parent
6f15a96d91
commit
bc4ec9ea5f
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ uxn_eval(Uxn *u, Uint16 pc)
|
||||||
case 0x00: /* BRK */ return 1;
|
case 0x00: /* BRK */ return 1;
|
||||||
case 0xff: /* JCI */ pc += !!s->dat[--s->ptr] * PEEK2(ram + pc) + 2; break;
|
case 0xff: /* JCI */ pc += !!s->dat[--s->ptr] * PEEK2(ram + pc) + 2; break;
|
||||||
case 0xfe: /* JMI */ pc += 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 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 0xfb: /* LIT2 */ SET(0, 2) PUT2(0, PEEK2(ram + pc)) pc += 2; break;
|
||||||
case 0xfa: /* LITr */ SET(0, 1) PUT(0, ram[pc++]) break;
|
case 0xfa: /* LITr */ SET(0, 1) PUT(0, ram[pc++]) break;
|
||||||
|
|
Loading…
Reference in a new issue