gbdev / rgbds-live

A live Gameboy programming environment in the browser, allowing for realtime assembly programming for the gameboy.
https://gbdev.io/rgbds-live/
MIT License
36 stars 8 forks source link

Fix emulator reset #22

Closed surma closed 11 months ago

surma commented 11 months ago

As reported by sylvie, stepping did not work after resetting.

The reset button destroys the emulator and creates a new one. However, it did not re-allocate memory for the ROM itself. I am not quite clear how it ever worked before, I suspect it used to rely on UB or maybe implementation specific behavior of an older allocator.