(uxn-fast) Housekeeping

This commit is contained in:
Devine Lu Linvega 2023-03-05 11:33:33 -08:00
parent 3da461e14d
commit 9f4231c59a
1 changed files with 8 additions and 8 deletions

View File

@ -63,11 +63,11 @@ uxn_eval(Uxn *u, Uint16 pc)
case 0x00: /* BRK */ return 1;
case 0xff: /* JCI */ pc += !!s->dat[--s->ptr] * PEEK16(u->ram + pc) + 2; break;
case 0xfe: /* JMI */ pc += PEEK16(u->ram + pc) + 2; break;
case 0xfd: /* JSI */ PUSH2(u->rst, pc + 2); pc += PEEK16(u->ram + pc) + 2; break;
case 0xfc: /* LIT */ PUSH(u->wst, u->ram[pc++]); break;
case 0xfb: /* LIT2 */ PUSH2(u->wst, PEEK16(u->ram + pc)); pc += 2; break;
case 0xfa: /* LITr */ PUSH(u->rst, u->ram[pc++]); break;
case 0xf9: /* LIT2r */ PUSH2(u->rst, PEEK16(u->ram + pc)); pc += 2; break;
case 0xfd: /* JSI */ PUSH2(u->rst, pc + 2) pc += PEEK16(u->ram + pc) + 2; break;
case 0xfc: /* LIT */ PUSH(s, u->ram[pc++]) break;
case 0xfb: /* LIT2 */ PUSH2(s, PEEK16(u->ram + pc)) pc += 2; break;
case 0xfa: /* LITr */ PUSH(s, u->ram[pc++]) break;
case 0xf9: /* LIT2r */ PUSH2(s, PEEK16(u->ram + pc)) pc += 2; break;
/* ALU */
case 0x21: /* INC2 */ t=T2; INC(2, 0) PUT2(0, t + 1) break;
case 0x01: /* INC */ t=T; INC(1, 0) PUT(0, t + 1); break;