(uxn.c)Use same macro format sequence for all CALL opcodes

This commit is contained in:
Devine Lu Linvega 2023-01-03 11:17:55 -08:00
parent 9b8cd748ad
commit 6cbe51b4ab
1 changed files with 2 additions and 2 deletions

View File

@ -49,8 +49,8 @@ uxn_eval(Uxn *u, Uint16 pc)
case 0x00:
/* Literals/Calls */
if(instr == 0x20) /* JMI */ { PEEK16(a, pc) pc = a; }
else if(instr == 0x40) /* JCI */ { sp = &u->wst->ptr; src = u->wst; POP8(a) if(a) { PEEK16(b, pc) pc = b; } else { pc += 2; } }
else if(instr == 0x60) /* JSI */ { PEEK16(a, pc) PUSH16(u->rst, pc + 2) pc = a; }
else if(instr == 0x40) /* JCI */ { sp = &u->wst->ptr; src = u->wst; POP8(b) if(b) { PEEK16(a, pc) pc = a; } else { pc += 2; } }
else if(instr == 0x60) /* JSI */ { PUSH16(u->rst, pc + 2) PEEK16(a, pc) pc = a; }
else if(bs) /* LIT2 */ { PEEK16(a, pc) PUSH16(src, a) pc += 2; }
else /* LITr */ { a = u->ram[pc++]; PUSH8(src, a) } break;
/* ALU */