No gba save format

From DeSmuME
(Difference between revisions)
Jump to: navigation, search
Line 51: Line 51:
 
|4C-4F
 
|4C-4F
 
|4
 
|4
|if method=0 then<br />''start of data''<br />else<br />''size of unpacked data''
+
|if method=0 then<br />''start address of data''<br />else<br />''size of unpacked data''
 
|-
 
|-
 
|}
 
|}

Revision as of 08:02, 5 October 2009

No$GBA SRAM save file format:

  • HEADER:
addr size description
00-1E 31 ID string = 'NocashGbaBackupMediaSavDataFile'
1F 1 always 0x1A
20-23 4 unknown (may for no$GBA internal use)
24-27 4 unknown (may for no$GBA internal use)
28-2B 4 unknown (may for no$GBA internal use)
2C-2F 4 unknown (may for no$GBA internal use)
30-3F 16 always 0x00
40-43 4 always 'SRAM'
44-47 4 method compression:

0 - uncompressed; 1 - compressed;

48-4B 4 if method=0 then
size of unpacked data
else
size of packed data
4C-4F 4 if method=0 then
start address of data
else
size of unpacked data
  • unpack:

all data splited on blocks.

xx yy xx > 0x80 then yy repeat xx-0x80 times;
xx yy zz zz xx == 0x80 then yy repeat zzzz times;
xx yy...zz xx < 0x80 then data read next xx values
Personal tools