Discuss emulation of the Nintendo Entertainment System and Famicom.
- Formerly Fx3
- Posts: 3220
- Joined: Fri Nov 12, 2004 4:59 pm
- Location: Brazil
WedNESday wrote:From what I've read, it does seem like a variable not being restored properly.
Nope, it wasn't. Just the wrong timing - must be saved at the end of the current instruction. Period.
I've never personally implemented savestates for WedNESday, so I've no experience with them. But shouldn't an emulator wait for the entire frame to finish before saving the savestate?
That's what I always did - scanline 240, right before the VBlank. It doesn't matter if it's saved before or after VBlank though.
- Posts: 164
- Joined: Sat Nov 18, 2017 9:15 pm
I'm of the opinion that being able to save on a specific instruction is useful for debugging.