diff --git a/src/devices/system.c b/src/devices/system.c index 831c2cc..89a2f96 100644 --- a/src/devices/system.c +++ b/src/devices/system.c @@ -91,12 +91,12 @@ system_boot(Uint8 *ram, char *rom) /* IO */ Uint8 -system_dei(Uxn *u, Uint8 addr) +system_dei(Uint8 addr) { switch(addr) { - case 0x4: return u->wst.ptr; - case 0x5: return u->rst.ptr; - default: return u->dev[addr]; + case 0x4: return uxn.wst.ptr; + case 0x5: return uxn.rst.ptr; + default: return uxn.dev[addr]; } } diff --git a/src/devices/system.h b/src/devices/system.h index 61195f1..39643ba 100644 --- a/src/devices/system.h +++ b/src/devices/system.h @@ -17,7 +17,7 @@ void system_inspect(); int system_error(char *msg, const char *err); int system_boot(Uint8 *ram, char *rom); -Uint8 system_dei(Uxn *u, Uint8 addr); +Uint8 system_dei(Uint8 addr); void system_deo(Uxn *u, Uint8 *d, Uint8 port); extern char *boot_rom; \ No newline at end of file diff --git a/src/uxn11.c b/src/uxn11.c index a3f1ca0..df17a22 100644 --- a/src/uxn11.c +++ b/src/uxn11.c @@ -48,7 +48,7 @@ Uint8 emu_dei(Uint8 addr) { switch(addr & 0xf0) { - case 0x00: return system_dei(&uxn, addr); + case 0x00: return system_dei(addr); case 0x10: return console_dei(&uxn, addr); case 0x20: return screen_dei(addr); case 0xc0: return datetime_dei(addr); diff --git a/src/uxncli.c b/src/uxncli.c index 5780ec4..2c07965 100644 --- a/src/uxncli.c +++ b/src/uxncli.c @@ -24,7 +24,7 @@ Uint8 emu_dei(Uint8 addr) { switch(addr & 0xf0) { - case 0x00: return system_dei(&uxn, addr); + case 0x00: return system_dei(addr); case 0x10: return console_dei(&uxn, addr); case 0xc0: return datetime_dei(addr); }