jotego / jtcores

FPGA cores compatible with multiple arcade game machines and KiCAD schematics of arcade games. Working on MiSTer FPGA/Analogue Pocket
https://patreon.com/jotego
GNU General Public License v3.0
228 stars 40 forks source link

s16/s18: enable NVRAM saving #700

Closed jotego closed 3 months ago

jotego commented 3 months ago

Saving NVRAM will save high scores. Look into adding this feature. May require moving the system RAM to BRAM.

Not all games seem to save high scores, but some do.

jotego commented 3 months ago

Preliminary work done in fea40295.

Saving works but it tends to crash the main CPU as it block access to the RAM while saving. Restoring does not work. Not clear why.

It is better to re-start from the master branch moving the first 16kB of work RAM to BRAM in mem.yaml. Then saving and loading is taken care of by the framework.

jotego commented 3 months ago

s16/s16b NVRAM saved support in 49052f05. Altered Beast saves high scores. S16B does not fit in SiDi anymore.

jotego commented 3 months ago

shanon/outrun NVRAM saving support in 33ae343d. OutRun does not seem to load it back correctly or at least the bookkeeping information is not stored well. The same happens in MAME, so maybe the system needs additional configuration not to erase the memory?

jotego commented 3 months ago

S18 NVRAM implemented in 99cd89d0

theenemy-thd commented 2 months ago

So outrun still doesn't save hi scores? I notice in alternative roms it supports the enhanced version of outrun which does save high scores but on mister it doesn't seem to show any of the enhanced options/settings or save the hi scores

Edit : my fault!! I wasn't saving settings before exiting core so hi saves are fine .... maybe an autosave on/off feature could be added?