No gba save format
From DeSmuME
(Difference between revisions)
m |
|||
(2 intermediate revisions by one user not shown) | |||
Line 13: | Line 13: | ||
|1F | |1F | ||
|1 | |1 | ||
− | | | + | |Always 0x1A |
|- | |- | ||
|20-23 | |20-23 | ||
|4 | |4 | ||
− | | | + | |Unknown (may be for No$GBA internal use) |
|- | |- | ||
− | |24 | + | |24 |
− | | | + | |1 |
− | | | + | |Day of the last time No$GBA saved (1-31) |
|- | |- | ||
− | |28-2B | + | |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 | |2C-2F | ||
|4 | |4 | ||
− | | | + | |Unknown (may be for No$GBA internal use) |
|- | |- | ||
|30-3F | |30-3F | ||
|16 | |16 | ||
− | | | + | |Always 0x00 |
|- | |- | ||
|40-43 | |40-43 | ||
|4 | |4 | ||
− | | | + | |Always 'SRAM' |
|- | |- | ||
|44-47 | |44-47 | ||
|4 | |4 | ||
− | |method | + | |Compression method: |
− | 0 - | + | *0 - Uncompressed; |
− | 1 - | + | *1 - Compressed |
|- | |- | ||
|48-4B | |48-4B | ||
|4 | |4 | ||
− | | | + | |If method = 0 then<br />''size of unpacked data''<br />else<br />''size of packed data'' |
|- | |- | ||
|4C-4F | |4C-4F | ||
|4 | |4 | ||
− | | | + | |If method = 0 then<br />''start address of data''<br />else<br />''size of unpacked data'' |
|- | |- | ||
|} | |} | ||
*'''unpack:''' | *'''unpack:''' | ||
− | + | All data splited on blocks. | |
{| border="1" | | {| border="1" | | ||
|xx yy | |xx yy |
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 |