No gba save format
From DeSmuME
(Difference between revisions)
m |
m |
||
Line 57: | Line 57: | ||
|44-47 | |44-47 | ||
|4 | |4 | ||
− | | | + | |Compression method: |
*0 - Uncompressed; | *0 - Uncompressed; | ||
*1 - Compressed | *1 - Compressed |
Latest revision as of 15:36, 4 October 2012
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 be for No$GBA internal use) |
24 | 1 | Day of the last time No$GBA saved (1-31) |
25 | 1 | Month of the last time No$GBA saved (1-12) |
26-27 | 2 | Year of the last time No$GBA saved (eg. 2012) |
28 | 1 | Hour of the last time No$GBA saved (0-23) |
29 | 1 | Minute of the last time No$GBA saved (0-59) |
2A-2B | 2 | Unknown (may be for No$GBA internal use) |
2C-2F | 4 | Unknown (may be for No$GBA internal use) |
30-3F | 16 | Always 0x00 |
40-43 | 4 | Always 'SRAM' |
44-47 | 4 | Compression method:
|
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 |