Neo TeAm Forum

The 10th. NEO Project for N64 => The 10th. NEO Project for N64 Dev kit. => Topic started by: ChillyWilly on August 08, 2010, 03:25:13 PM

Title: Neo N64 Menu v1.4
Post by: ChillyWilly on August 08, 2010, 03:25:13 PM
Quick update... this fixes the EEPROM load/save (I hope). I tested with Cruis'n USA and Ridge Racer 64 ( a 4k and 16k eeprom game respectively). If you wish to compile your own version of this, you'll need to update your libdragon as well - I added eeprom read/write code to the lib.

I really hope I don't have to add FRAM specific code... that's a real bitch to handle.   ~sm-73.gif~.gif
Title: Re: Neo N64 Menu v1.4
Post by: stefan_iro on August 08, 2010, 03:42:08 PM
Thanks a lot!
I am going to test it as soon as I get my neo2 card working....
Title: Re: Neo N64 Menu v1.4
Post by: Conle on August 08, 2010, 04:05:16 PM
So even if the Save ram is emulated , the HW still expects the proper binding and access of the given chip.
Maybe if you force to core to set the save type always to SRAM before booting then upload the previous save dump , and before booting set back the save type to the proper one it might just work.

Same applies for the restore function.
Title: Re: Neo N64 Menu v1.4
Post by: ronaldo_76 on August 08, 2010, 04:43:58 PM
that is exactly what i need, thanks alot chillywilly.  :-*

i will check this out now!  ~sm-69.gif~.gif
Title: Re: Neo N64 Menu v1.4
Post by: ChillyWilly on August 08, 2010, 05:17:18 PM
that is exactly what i need, thanks alot chillywilly.  :-*

i will check this out now!  ~sm-69.gif~.gif

Look at loadSaveState() and saveSaveState() for details.
Title: Re: Neo N64 Menu v1.4
Post by: Nekojin on August 08, 2010, 05:19:37 PM
Quick update... this fixes the EEPROM load/save (I hope). I tested with Cruis'n USA and Ridge Racer 64 ( a 4k and 16k eeprom game respectively). If you wish to compile your own version of this, you'll need to update your libdragon as well - I added eeprom read/write code to the lib.

I really hope I don't have to add FRAM specific code... that's a real bitch to handle.   ~sm-73.gif~.gif

Is this the same problem than the one on Mario Kart not saving correctly?

I didn't that much time in the last weeks, so please excuse my question, but can you use the menu on the normal GBA SD Card or do you have to use the new N64 Pro card?
Title: Re: Neo N64 Menu v1.4
Post by: ChillyWilly on August 08, 2010, 05:34:33 PM
Is this the same problem than the one on Mario Kart not saving correctly?

No, Mario Kart is EEPROM, and saves/loads fine now. I did verify that FRAM isn't saving/loading.  :'(

Quote
I didn't that much time in the last weeks, so please excuse my question, but can you use the menu on the normal GBA SD Card or do you have to use the new N64 Pro card?

The Neo2-SD works fine, but you are limited to running 16MByte or smaller games as that's all the psram the Neo2-SD has.
Title: Re: Neo N64 Menu v1.4
Post by: ronaldo_76 on August 08, 2010, 05:59:10 PM
chillywilly

games on sdcard saves fine! all saves in .menu/n64/save

but when i start conker from flash they are no savegame in .menu/n64/save - i need this feature.  :-*

games from flash = savegame on sdcard

can you realize that?
Title: Re: Neo N64 Menu v1.4
Post by: ChillyWilly on August 08, 2010, 06:13:45 PM
chillywilly

games on sdcard saves fine! all saves in .menu/n64/save

but when i start conker from flash they are no savegame in .menu/n64/save - i need this feature.  :-*

games from flash = savegame on sdcard

can you realize that?

Assuming that you have an SD capable cart. I can probably do that.

By the way, the EEPROM is emulated in the SRAM... but it does a very odd thing - it saves each bit as a word. So if your EEPROM starts with the hex data 53 74, the data in the sram will be 0000 FFFF 0000 FFFF 0000 0000 FFFF FFFF 0000 FFFF FFFF FFFF 0000 FFFF 0000 0000.

So my original attempt at saving the EEPROM by saving the sram would have worked, but I wasn't saving enough of the sram. I have to save 16X the actual storage for it to work.

So now I'm wondering how the FRAM is emulated... if it's emulated.
Title: Re: Neo N64 Menu v1.4
Post by: sanni on August 08, 2010, 06:54:06 PM
I don't know if this answers your question, but both sram and fram are swapped in the nsram compared to when saved via an emulator. You can swap them from Neo to emulator with ucon64 --swap2 NSRAM.bin. (If NSRAM.bin is the raw read out of the nsram.)
It's not saved in the funny way that 4kb and 16kb eeprom is saved.