uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit a77434a67108cddf05d1c76f415c7f180d3707b4
parent de7b24e820cba42eb6a2448d0ec26f921a31aa98
Author: neauoire <aliceffekt@gmail.com>
Date:   Sun, 13 Aug 2023 21:11:18 -0700

Reset device page on soft reboot

Diffstat:
Msrc/uxnemu.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/uxnemu.c b/src/uxnemu.c @@ -285,6 +285,10 @@ emu_restart_soft(Uxn *u) int i; for(i = 0x100; i < 0x10000; i++) 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.fg, 0, 0, uxn_screen.width, uxn_screen.height, 0); if(!system_load(u, rom_path))