No gba save format

From DeSmuME
(Difference between revisions)
Jump to: navigation, search
Line 54: Line 54:
 
|-
 
|-
 
|}
 
|}
 +
 
*'''unpack:'''
 
*'''unpack:'''
**all data splited on blocks.
+
all data splited on blocks.
***xx yy
+
{| border="1" |
***xx > 0x80 then yy repeat xx-0x80 times;
+
|xx yy
***
+
|xx > 0x80 then yy repeat xx-0x80 times;
***xx yy zz zz
+
|-
***xx == 0x80 then yy repeat zzzz times;
+
|xx yy zz zz
***
+
|xx == 0x80 then yy repeat zzzz times;
***xx yy...zz
+
|-
***xx < 0x80 then data read next xx values
+
|xx yy...zz
 +
|xx < 0x80 then data read next xx values
 +
|}

Revision as of 07:52, 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 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