nand2mario / nestang

NESTang is an FPGA Nintendo Entertainment System implemented with Sipeed Tang Primer 25K, Nano 20K and Primer 20K boards
https://nand2mario.github.io/nestang
GNU General Public License v3.0
326 stars 36 forks source link

Allow save games in nestang core #78

Open siffland opened 1 month ago

siffland commented 1 month ago

This works in the snestang core, can it be ported to the nestang core to allow for saves to be enabled.

fjpolo commented 1 month ago

It's already enabled. You need r0.10 and to allow it from the options. I tested it on Kirby's Adventure (Germany).nes

Edit: after a power cycle, saves are gone ⚠

siffland commented 1 month ago

It creates the snestang.ini (even on the nestang core it is named snestang.ini) and when i load the snestang core it saves everything perfectly fine in the saves directory, but the functionality is not there on the nestang core (to survive the power cycle).

nand2mario commented 1 month ago

RAM backups are not implemented yet. It requires some changes to sdram_nes.v to allow RV to access CPU/PPU memory.