(uxn-fast) Housekeeping
This commit is contained in:
parent
4cacc0d26b
commit
9ac7f06fde
|
@ -38,22 +38,8 @@ WITH REGARD TO THIS SOFTWARE.
|
||||||
|
|
||||||
static
|
static
|
||||||
Uint16 callbacks[] = {
|
Uint16 callbacks[] = {
|
||||||
0xffff, /* 00 system */
|
0x6a08, 0x0300, 0xc028, 0x8000, 0x8000, 0x8000, 0x8000, 0x0000,
|
||||||
0xffff, /* 10 console */
|
0x0000, 0x0000, 0xa260, 0xa260, 0x0000, 0x0000, 0x0000, 0x0000
|
||||||
0xc028, /* 20 screen */
|
|
||||||
0x8000, /* 30 audio 0 */
|
|
||||||
0x8000, /* 40 audio 1 */
|
|
||||||
0x8000, /* 50 audio 2 */
|
|
||||||
0x8000, /* 60 audio 3 */
|
|
||||||
0x0000, /* 70 midi */
|
|
||||||
0x0000, /* 80 mouse */
|
|
||||||
0x0000, /* 90 controller*/
|
|
||||||
0xa260, /* a0 file 0 */
|
|
||||||
0xa260, /* b0 file 1 */
|
|
||||||
0xffff, /* c0 datetime */
|
|
||||||
0x0000, /* d0 empty */
|
|
||||||
0x0000, /* e0 empty */
|
|
||||||
0x0000 /* f0 empty */
|
|
||||||
};
|
};
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -102,7 +88,7 @@ uxn_eval(Uxn *u, Uint16 pc)
|
||||||
case 0x2b: /* LTH2 */ t=T2;n=N2; INC(4,-3) PUT(0, n < t) break;
|
case 0x2b: /* LTH2 */ t=T2;n=N2; INC(4,-3) PUT(0, n < t) break;
|
||||||
case 0x0b: /* LTH */ t=T;n=N; INC(2,-1) PUT(0, n < t) break;
|
case 0x0b: /* LTH */ t=T;n=N; INC(2,-1) PUT(0, n < t) break;
|
||||||
case 0x2c: /* JMP2 */ t=T2; DEC(2, 0) pc = t; break;
|
case 0x2c: /* JMP2 */ t=T2; DEC(2, 0) pc = t; break;
|
||||||
case 0x0c: /* JMP */ t=T; DEC(1, 0) pc += (Sint8)(t); break;
|
case 0x0c: /* JMP */ t=T; DEC(1, 0) pc += (Sint8)t; break;
|
||||||
case 0x2d: /* JCN2 */ t=T2;n=L; DEC(3, 0) if(n) { pc = t; } break;
|
case 0x2d: /* JCN2 */ t=T2;n=L; DEC(3, 0) if(n) { pc = t; } break;
|
||||||
case 0x0d: /* JCN */ t=T;n=N; DEC(2, 0) pc += !!n * (Sint8)t; break;
|
case 0x0d: /* JCN */ t=T;n=N; DEC(2, 0) pc += !!n * (Sint8)t; break;
|
||||||
case 0x2e: /* JSR2 */ t=T2; DEC(2, 0) PUSH2(u->rst, pc) pc = t; break;
|
case 0x2e: /* JSR2 */ t=T2; DEC(2, 0) PUSH2(u->rst, pc) pc = t; break;
|
||||||
|
|
Loading…
Reference in New Issue