time-travelling emulator?

Are you new to 6502, NES, or even programming in general? Post any of your questions here. Remember - the only dumb question is the question that remains unasked.

Moderator: Moderators

Post Reply
ajb
Posts: 14
Joined: Thu Apr 08, 2021 12:37 pm

time-travelling emulator?

Post by ajb » Fri May 14, 2021 6:35 pm

Pardon if my search terms have been failing...

Is there a time-traveling debugger/emulator for NES? Or some such similar functionality with regular state snapshots that you can revert back to?

I see that Mesen will let me step backwards one instruction at a time, but maybe I'm missing more advanced functionality?

User avatar
Dwedit
Posts: 4462
Joined: Fri Nov 19, 2004 7:35 pm
Contact:

Re: time-travelling emulator?

Post by Dwedit » Fri May 14, 2021 7:28 pm

I think Mesen has rewind, I wonder if that's what you're looking for?
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!

ajb
Posts: 14
Joined: Thu Apr 08, 2021 12:37 pm

Re: time-travelling emulator?

Post by ajb » Fri May 14, 2021 7:44 pm

Thanks! Oh, interesting - found the keybinding for it.

Hmm, it triggers uninitialized memory read - probably a bug. Seems somewhat limited, but better than nothing.

It also has an automatic state save mechanism, but can't be set to faster than every 1 minute. And can't rewind from the state.

ajb
Posts: 14
Joined: Thu Apr 08, 2021 12:37 pm

Re: time-travelling emulator?

Post by ajb » Fri May 14, 2021 10:33 pm

Ok, took me building Mesen from source to figure out that "movies" are actually state movies which are debuggable! And that the history viewer can let you scrub and select a state to resume from.

Totally should have RTFM...

lidnariq
Posts: 10666
Joined: Sun Apr 13, 2008 11:12 am
Location: Seattle

Re: time-travelling emulator?

Post by lidnariq » Fri May 14, 2021 10:48 pm

You might also be able to use other emulators with re-recording support?

ajb
Posts: 14
Joined: Thu Apr 08, 2021 12:37 pm

Re: time-travelling emulator?

Post by ajb » Sat May 15, 2021 12:10 am

Ah, that's a new term for me. Interesting. Looks like FCEUX supports this.
Thanks!

Post Reply