Muted warnings

This commit is contained in:
neauoire 2023-08-16 13:53:31 -07:00
parent 13bd3ce2d8
commit d3371d1f73
2 changed files with 5 additions and 3 deletions

View File

@ -114,10 +114,12 @@ system_init(Uxn *u, Uint8 *ram, char *rom)
void
system_deo(Uxn *u, Uint8 *d, Uint8 port)
{
Uint8 *ram;
Uint16 addr;
switch(port) {
case 0x3:
Uint8 *ram = u->ram;
Uint16 addr = PEEK2(d + 2);
ram = u->ram;
addr = PEEK2(d + 2);
if(ram[addr] == 0x1) {
Uint16 i, length = PEEK2(ram + addr + 1);
Uint16 a_page = PEEK2(ram + addr + 1 + 2), a_addr = PEEK2(ram + addr + 1 + 4);

View File

@ -46,7 +46,7 @@ uxn_eval(Uxn *u, Uint16 pc)
switch(!(ins & 0x1f) ? (0 - (ins >> 5)) & 0xff : ins & 0x3f) {
/* IMM */
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 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;