mirror of
https://git.sr.ht/~rabbits/uxn
synced 2024-11-29 17:23:01 +00:00
Reset device page on soft reboot
This commit is contained in:
parent
de7b24e820
commit
a77434a671
1 changed files with 4 additions and 0 deletions
|
@ -285,6 +285,10 @@ emu_restart_soft(Uxn *u)
|
||||||
int i;
|
int i;
|
||||||
for(i = 0x100; i < 0x10000; i++)
|
for(i = 0x100; i < 0x10000; i++)
|
||||||
u->ram[i] = 0;
|
u->ram[i] = 0;
|
||||||
|
for(i = 0x0; i < 0x100; i++)
|
||||||
|
u->dev[i] = 0;
|
||||||
|
u->wst.ptr = 0;
|
||||||
|
u->rst.ptr = 0;
|
||||||
screen_fill(uxn_screen.bg, 0, 0, uxn_screen.width, uxn_screen.height, 0);
|
screen_fill(uxn_screen.bg, 0, 0, uxn_screen.width, uxn_screen.height, 0);
|
||||||
screen_fill(uxn_screen.fg, 0, 0, uxn_screen.width, uxn_screen.height, 0);
|
screen_fill(uxn_screen.fg, 0, 0, uxn_screen.width, uxn_screen.height, 0);
|
||||||
if(!system_load(u, rom_path))
|
if(!system_load(u, rom_path))
|
||||||
|
|
Loading…
Reference in a new issue