... | ... |
@@ -285,6 +285,10 @@ emu_restart_soft(Uxn *u) |
285 | 285 |
int i; |
286 | 286 |
for(i = 0x100; i < 0x10000; i++) |
287 | 287 |
u->ram[i] = 0; |
288 |
+ for(i = 0x0; i < 0x100; i++) |
|
289 |
+ u->dev[i] = 0; |
|
290 |
+ u->wst.ptr = 0; |
|
291 |
+ u->rst.ptr = 0; |
|
288 | 292 |
screen_fill(uxn_screen.bg, 0, 0, uxn_screen.width, uxn_screen.height, 0); |
289 | 293 |
screen_fill(uxn_screen.fg, 0, 0, uxn_screen.width, uxn_screen.height, 0); |
290 | 294 |
if(!system_load(u, rom_path)) |