Post subject: N64 SaveRAM
MarbleousDave
He/Him
Player (13)
Joined: 9/12/2009
Posts: 1559
The max filesize for N64 saves is 128 KB, not 290 KB. It needs to be fixed or we'll be stuck with resorting to hexediting. Offset of copying Flash saves to SaveRAM in hexdecimal is 20800.
Editor, Emulator Coder
Joined: 8/7/2008
Posts: 1156
Sorry for your misconception. Max filesize of *something* is 128KB. Filesize of bizhawk's (and mupen's) complete dump of all potentially relevant RAM used for saving things (colloquially known as "save ram") from various sources is 290KB. This will be a helpful reference for your hex editing. https://github.com/TASVideos/BizHawk/blob/master/libmupen64plus/mupen64plus-core/src/memory/pif.c#L613
MarbleousDave
He/Him
Player (13)
Joined: 9/12/2009
Posts: 1559
First 128KB is for Controller Pak data, Second 128KB is for internal saves.
Hexdecimal
00000-007FF EEPROM
00800-087FF Controller Pak 1
08800-107FF Controller Pak 2
10800-187FF Controller Pak 3
18800-207FF Controller Pak 4
20800-407FF Flash
40800-487FF SRAM
EEPROM saves can be read by changing .EEP to .SAVERAM. Controller Paks, Flash saves, and SRAM must be hex edited accordingly.