Author Topic: Neo N64 Menu v1.4  (Read 7390 times)

0 Members and 1 Guest are viewing this topic.

Offline ChillyWilly

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1751
  • Just a coding machine.
Neo N64 Menu v1.4
« 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
« Last Edit: August 12, 2010, 06:50:26 AM by ChillyWilly »

Offline stefan_iro

  • Full Member
  • ***
  • Posts: 218
  • It´s a me, Mario
Re: Neo N64 Menu v1.4
« Reply #1 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....
-----------------------------------
8bit & 16bit
the golden age of videogames

Offline Conle

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2203
Re: Neo N64 Menu v1.4
« Reply #2 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.
« Last Edit: August 08, 2010, 04:07:52 PM by Conle »

Offline ronaldo_76

  • Full Member
  • ***
  • Posts: 196
Re: Neo N64 Menu v1.4
« Reply #3 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

Offline ChillyWilly

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1751
  • Just a coding machine.
Re: Neo N64 Menu v1.4
« Reply #4 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.

Offline Nekojin

  • Newbie
  • *
  • Posts: 42
Re: Neo N64 Menu v1.4
« Reply #5 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?

Offline ChillyWilly

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1751
  • Just a coding machine.
Re: Neo N64 Menu v1.4
« Reply #6 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.

Offline ronaldo_76

  • Full Member
  • ***
  • Posts: 196
Re: Neo N64 Menu v1.4
« Reply #7 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?

Offline ChillyWilly

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1751
  • Just a coding machine.
Re: Neo N64 Menu v1.4
« Reply #8 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.

Offline sanni

  • Moderator
  • Hero Member
  • *****
  • Posts: 502
Re: Neo N64 Menu v1.4
« Reply #9 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.