Re: [Tuxnes-devel] TuxNES 0.75 save state patch
Brought to you by:
tmmm
From: Jason S. <vze...@ve...> - 2002-01-30 07:50:28
|
Allen Noe wrote: > Attached is an alpha-quality patch which adds _very_ primitive save state > functionality to TuxNES 0.75. > > It probably has all sorts of bugs, but I'm posting it here so I can get some > comments on it. Particularly, I'm wondering if I'm saving something that doesn't > need to be saved, or not saving something that should. I'm also wondering if any > of you have a format description for SNSS or .STA state files, so the format it > uses can be compatible with one or the other. > > Currently it only supports the MMC1 mapper, and uses a file named "state" in the > current directory, supports one slot only, supports X11 renderers only, and the > keys are hardwired to F9 to save and F10 to load. > > I have tested it on Linux only, and not very extensively. I put together a primitive save-and-restore patch a few months ago. Yours looks to be quite a bit more advanced than what I did - I just saved the PC, SP, and RAM and hoped on the rest. It worked adequately for a few simple purposes :-). Eventually Mike (I think) sent me a copy of the SNSS spec. But I never got around to doing the hard context switching work, much less dealing with any of the different mappers. Here's what I did (I think it has some extra changes unrelated to the patch, but not much). I doubt it will help you in any way, but... jason |