Formatting

This commit is contained in:
Devine Lu Linvega 2024-08-16 19:33:23 -07:00
parent 4eac8853d6
commit bffb31ccc8
1 changed files with 30 additions and 30 deletions

View File

@ -59,37 +59,37 @@ uxn_eval(Uint16 pc)
/* LIT */ case 0x80: INC(wst) = uxn.ram[pc++]; break;
/* L2r */ case 0xe0: INC(rst) = uxn.ram[pc++];
/* LIr */ case 0xc0: INC(rst) = uxn.ram[pc++]; break;
/* INC */ OPC(0x01, POx(a), PUx(a + 1))
/* POP */ OPC(0x02, POx(a), 0)
/* NIP */ OPC(0x03, POx(a) POx(b), PUx(a))
/* SWP */ OPC(0x04, POx(a) POx(b), PUx(a) PUx(b))
/* ROT */ OPC(0x05, POx(a) POx(b) POx(c), PUx(b) PUx(a) PUx(c))
/* DUP */ OPC(0x06, POx(a), PUx(a) PUx(a))
/* OVR */ OPC(0x07, POx(a) POx(b), PUx(b) PUx(a) PUx(b))
/* EQU */ OPC(0x08, POx(a) POx(b), PU1(b == a))
/* NEQ */ OPC(0x09, POx(a) POx(b), PU1(b != a))
/* GTH */ OPC(0x0a, POx(a) POx(b), PU1(b > a))
/* LTH */ OPC(0x0b, POx(a) POx(b), PU1(b < a))
/* JMP */ OPC(0x0c, POx(a), JMP(a))
/* INC */ OPC(0x01, POx(a),PUx(a + 1))
/* POP */ OPC(0x02, POx(a),0)
/* NIP */ OPC(0x03, POx(a) POx(b),PUx(a))
/* SWP */ OPC(0x04, POx(a) POx(b),PUx(a) PUx(b))
/* ROT */ OPC(0x05, POx(a) POx(b) POx(c),PUx(b) PUx(a) PUx(c))
/* DUP */ OPC(0x06, POx(a),PUx(a) PUx(a))
/* OVR */ OPC(0x07, POx(a) POx(b),PUx(b) PUx(a) PUx(b))
/* EQU */ OPC(0x08, POx(a) POx(b),PU1(b == a))
/* NEQ */ OPC(0x09, POx(a) POx(b),PU1(b != a))
/* GTH */ OPC(0x0a, POx(a) POx(b),PU1(b > a))
/* LTH */ OPC(0x0b, POx(a) POx(b),PU1(b < a))
/* JMP */ OPC(0x0c, POx(a),JMP(a))
/* JCN */ OPC(0x0d, POx(a) PO1(b), if(b) JMP(a))
/* JSR */ OPC(0x0e, POx(a), PF2(pc) JMP(a))
/* STH */ OPC(0x0f, POx(a), PFx(a))
/* LDZ */ OPC(0x10, PO1(a), PEK(b, a, t) PUx(b))
/* STZ */ OPC(0x11, PO1(a) POx(b), POK(a, b, t))
/* LDR */ OPC(0x12, PO1(a), PEK(b, pc + (Sint8)a, tt) PUx(b))
/* STR */ OPC(0x13, PO1(a) POx(b), POK(pc + (Sint8)a, b, tt))
/* LDA */ OPC(0x14, PO2(a), PEK(b, a, tt) PUx(b))
/* STA */ OPC(0x15, PO2(a) POx(b), POK(a, b, tt))
/* DEI */ OPC(0x16, PO1(a), DEI(a, b) PUx(b))
/* DEO */ OPC(0x17, PO1(a) POx(b), DEO(a, b))
/* ADD */ OPC(0x18, POx(a) POx(b), PUx(b + a))
/* SUB */ OPC(0x19, POx(a) POx(b), PUx(b - a))
/* MUL */ OPC(0x1a, POx(a) POx(b), PUx(b * a))
/* DIV */ OPC(0x1b, POx(a) POx(b), PUx(a ? b / a : 0))
/* AND */ OPC(0x1c, POx(a) POx(b), PUx(b & a))
/* ORA */ OPC(0x1d, POx(a) POx(b), PUx(b | a))
/* EOR */ OPC(0x1e, POx(a) POx(b), PUx(b ^ a))
/* SFT */ OPC(0x1f, PO1(a) POx(b), PUx(b >> (a & 0xf) << (a >> 4)))
/* JSR */ OPC(0x0e, POx(a),PF2(pc) JMP(a))
/* STH */ OPC(0x0f, POx(a),PFx(a))
/* LDZ */ OPC(0x10, PO1(a),PEK(b, a, t) PUx(b))
/* STZ */ OPC(0x11, PO1(a) POx(b),POK(a, b, t))
/* LDR */ OPC(0x12, PO1(a),PEK(b, pc + (Sint8)a, tt) PUx(b))
/* STR */ OPC(0x13, PO1(a) POx(b),POK(pc + (Sint8)a, b, tt))
/* LDA */ OPC(0x14, PO2(a),PEK(b, a, tt) PUx(b))
/* STA */ OPC(0x15, PO2(a) POx(b),POK(a, b, tt))
/* DEI */ OPC(0x16, PO1(a),DEI(a, b) PUx(b))
/* DEO */ OPC(0x17, PO1(a) POx(b),DEO(a, b))
/* ADD */ OPC(0x18, POx(a) POx(b),PUx(b + a))
/* SUB */ OPC(0x19, POx(a) POx(b),PUx(b - a))
/* MUL */ OPC(0x1a, POx(a) POx(b),PUx(b * a))
/* DIV */ OPC(0x1b, POx(a) POx(b),PUx(a ? b / a : 0))
/* AND */ OPC(0x1c, POx(a) POx(b),PUx(b & a))
/* ORA */ OPC(0x1d, POx(a) POx(b),PUx(b | a))
/* EOR */ OPC(0x1e, POx(a) POx(b),PUx(b ^ a))
/* SFT */ OPC(0x1f, PO1(a) POx(b),PUx(b >> (a & 0xf) << (a >> 4)))
}
}
}