Device ids error report should be in 16th
This commit is contained in:
parent
5d837313e5
commit
0c6dec9fc8
|
@ -53,7 +53,8 @@ screen_blit(UxnScreen *p, Layer *layer, Uint16 x, Uint16 y, Uint8 *sprite, Uint8
|
|||
}
|
||||
}
|
||||
|
||||
static void layer_clear(UxnScreen *p, Layer *layer)
|
||||
static void
|
||||
layer_clear(UxnScreen *p, Layer *layer)
|
||||
{
|
||||
Uint32 i, size = p->width * p->height;
|
||||
for(i = 0; i < size; i++)
|
||||
|
|
|
@ -63,6 +63,8 @@ system_deo(Uxn *u, Uint8 *d, Uint8 port)
|
|||
switch(port) {
|
||||
case 0x2: u->wst = (Stack *)(u->ram + (d[port] ? (d[port] * 0x100) : 0x10000)); break;
|
||||
case 0x3: u->rst = (Stack *)(u->ram + (d[port] ? (d[port] * 0x100) : 0x10100)); break;
|
||||
case 0xe: if(u->wst->ptr || u->rst->ptr) system_inspect(u); break;
|
||||
case 0xe:
|
||||
if(u->wst->ptr || u->rst->ptr) system_inspect(u);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -94,7 +94,7 @@ emu_deo(Uxn *u, Uint8 addr, Uint8 v)
|
|||
case 0xb0: file_deo(1, u->ram, &u->dev[d], p); break;
|
||||
}
|
||||
if(p == 0x01 && !(SUPPORT & mask))
|
||||
fprintf(stderr, "Warning: Incompatible emulation, device: %02x.\n", d >> 4);
|
||||
fprintf(stderr, "Warning: Incompatible emulation, device: %02x.\n", d);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -70,7 +70,7 @@ emu_deo(Uxn *u, Uint8 addr, Uint8 v)
|
|||
case 0xb0: file_deo(1, u->ram, &u->dev[d], p); break;
|
||||
}
|
||||
if(p == 0x01 && !(SUPPORT & mask))
|
||||
fprintf(stderr, "Warning: Incompatible emulation, device: %02x.\n", d >> 4);
|
||||
fprintf(stderr, "Warning: Incompatible emulation, device: %02x.\n", d);
|
||||
}
|
||||
|
||||
int
|
||||
|
|
Loading…
Reference in New Issue