Muted warnings
This commit is contained in:
parent
13bd3ce2d8
commit
d3371d1f73
|
@ -114,10 +114,12 @@ system_init(Uxn *u, Uint8 *ram, char *rom)
|
||||||
void
|
void
|
||||||
system_deo(Uxn *u, Uint8 *d, Uint8 port)
|
system_deo(Uxn *u, Uint8 *d, Uint8 port)
|
||||||
{
|
{
|
||||||
|
Uint8 *ram;
|
||||||
|
Uint16 addr;
|
||||||
switch(port) {
|
switch(port) {
|
||||||
case 0x3:
|
case 0x3:
|
||||||
Uint8 *ram = u->ram;
|
ram = u->ram;
|
||||||
Uint16 addr = PEEK2(d + 2);
|
addr = PEEK2(d + 2);
|
||||||
if(ram[addr] == 0x1) {
|
if(ram[addr] == 0x1) {
|
||||||
Uint16 i, length = PEEK2(ram + addr + 1);
|
Uint16 i, length = PEEK2(ram + addr + 1);
|
||||||
Uint16 a_page = PEEK2(ram + addr + 1 + 2), a_addr = PEEK2(ram + addr + 1 + 4);
|
Uint16 a_page = PEEK2(ram + addr + 1 + 2), a_addr = PEEK2(ram + addr + 1 + 4);
|
||||||
|
|
|
@ -46,7 +46,7 @@ uxn_eval(Uxn *u, Uint16 pc)
|
||||||
switch(!(ins & 0x1f) ? (0 - (ins >> 5)) & 0xff : ins & 0x3f) {
|
switch(!(ins & 0x1f) ? (0 - (ins >> 5)) & 0xff : ins & 0x3f) {
|
||||||
/* IMM */
|
/* IMM */
|
||||||
case 0x00: /* BRK */ return 1;
|
case 0x00: /* BRK */ return 1;
|
||||||
case 0xff: /* JCI */ if(!s->dat[--s->ptr]) { pc += 2; break; }
|
case 0xff: /* JCI */ if(!s->dat[--s->ptr]) { pc += 2; break; } /* else fallthrough */
|
||||||
case 0xfe: /* JMI */ pc += PEEK2(ram + pc) + 2; break;
|
case 0xfe: /* JMI */ pc += PEEK2(ram + pc) + 2; break;
|
||||||
case 0xfd: /* JSI */ SET(0, 2) PUT2(pc + 2) pc += PEEK2(ram + pc) + 2; break;
|
case 0xfd: /* JSI */ SET(0, 2) PUT2(pc + 2) pc += PEEK2(ram + pc) + 2; break;
|
||||||
case 0xfc: /* LITr */ case 0xfa: SET(0, 1) PUT1(ram[pc++]) break;
|
case 0xfc: /* LITr */ case 0xfa: SET(0, 1) PUT1(ram[pc++]) break;
|
||||||
|
|
Loading…
Reference in New Issue