The 7th Saga/RAM map: Difference between revisions

From Data Crystal
Jump to navigation Jump to search
(→‎SRAM: Seems the 0x60 default pattern for 0x0000-10FF doesn't match my test of a blank file.)
Line 5: Line 5:
Offset | Len  | Description
Offset | Len  | Description
_______|______|_____________________
_______|______|_____________________
0x0000 |    2 | Checksum?
0x0000 |    2 | Checksum using 16-bit XOR
0x0002 |  510 | Unused
0x0002 |  510 | Unused
0x0200 | 1280 | Save Slot 1?
0x0200 | 1280 | Save Slot 1?
Line 18: Line 18:
0x0005 |  1 | Number of times saved?
0x0005 |  1 | Number of times saved?
0x0021 |  1 | 1st PC's ?????
0x0021 |  1 | 1st PC's ?????
0x0022 |  1 | 1st PC's level
0x0022 |  2 | 1st PC's level
0x0023 |  2 | 1st PC's cur? HP
0x0024 |  2 | 1st PC's cur? HP
0x0025 |  2 | 1st PC's max? HP
0x0026 |  2 | 1st PC's max? HP
0x0027 |  2 | 1st PC's cur? MP
0x0028 |  2 | 1st PC's cur? MP
0x0029 |  2 | 1st PC's max? MP
0x002A |  2 | 1st PC's max? MP
0x002B |  2 | 1st PC's Power
0x002C |  2 | 1st PC's Power
0x002D |  2 | 1st PC's Magic
0x002E |  2 | 1st PC's Magic
0x002F |  1 | 1st PC's Speed
0x0030 |  1 | 1st PC's Speed
0x0030 |  1 | 1st PC's ?????
0x0031 |  1 | 1st PC's ?????
0x0031 |  1 | 1st PC's Status?
0x0032 |  1 | 1st PC's weapon slot?
0x0032 |  1 | 1st PC's weapon slot?
0x0033 |  1 | 1st PC's armor/clock/robe slot?
0x0033 |  1 | 1st PC's armor/clock/robe slot?
Line 33: Line 32:
0x0051 |  1 | 2nd PC's ?????
0x0051 |  1 | 2nd PC's ?????
0x0052 |  1 | 2nd PC's level
0x0052 |  1 | 2nd PC's level
0x0053 |  2 | 2nd PC's cur? HP
0x0054 |  2 | 2nd PC's cur? HP
0x0055 |  2 | 2nd PC's max? HP
0x0056 |  2 | 2nd PC's max? HP
0x0057 |  2 | 2nd PC's cur? MP
0x0058 |  2 | 2nd PC's cur? MP
0x0059 |  2 | 2nd PC's max? MP
0x005A |  2 | 2nd PC's max? MP
0x005B |  2 | 2nd PC's Power
0x005C |  2 | 2nd PC's Power
0x005D |  2 | 2nd PC's Magic
0x005E |  2 | 2nd PC's Magic
0x005F |  1 | 2nd PC's Speed
0x0060 |  1 | 2nd PC's Speed
0x0060 |  1 | 2nd PC's ?????
0x0061 |  1 | 2nd PC's ?????
0x0061 |  1 | 2nd PC's Status?
0x0062 |  1 | 2nd PC's weapon slot?
0x0062 |  1 | 2nd PC's weapon slot?
0x0063 |  1 | 2nd PC's armor/clock/robe slot?
0x0063 |  1 | 2nd PC's armor/clock/robe slot?
Line 52: Line 50:
0x00EE | 2*? | Inventory slots 56-?? (100 slots?)
0x00EE | 2*? | Inventory slots 56-?? (100 slots?)
0x0280 |  ? | Start of what looks like quest flags?
0x0280 |  ? | Start of what looks like quest flags?
0x03FE |  2 | Checksum?
0x03FE |  2 | Checksum using 16-bit XOR
 
Character Structure A (Unknown size)
 
Offset | Len | Description
_______|_____|_____________________
0x0000 |  ? | ?


Default for 0x0002-0x10FF is 0xFF.  Default for 0x1100-1FFF is 0x00.  Unused areas generally follow this pattern.
Default for 0x0002-0x10FF is 0xFF.  Default for 0x1100-1FFF is 0x00.  Unused areas generally follow this pattern.
</pre>
</pre>

Revision as of 14:10, 22 June 2018

SRAM

File Structure (0x2000 = 8192 bytes)

	Offset | Len  | Description
	_______|______|_____________________
	0x0000 |    2 | Checksum using 16-bit XOR
	0x0002 |  510 | Unused
	0x0200 | 1280 | Save Slot 1?
	0x0700 | 2560 | Unused
	0x1100 | 1280 | Save Slot 1? (Identical contents to 0x200-0x6FF)
	0x1600 | 2560 | Unused

Save Slot Structure (0x400 = 1024 bytes?)

	Offset | Len | Description
	_______|_____|______________________
	0x0005 |   1 | Number of times saved?
	0x0021 |   1 | 1st PC's ?????
	0x0022 |   2 | 1st PC's level
	0x0024 |   2 | 1st PC's cur? HP
	0x0026 |   2 | 1st PC's max? HP
	0x0028 |   2 | 1st PC's cur? MP
	0x002A |   2 | 1st PC's max? MP
	0x002C |   2 | 1st PC's Power
	0x002E |   2 | 1st PC's Magic
	0x0030 |   1 | 1st PC's Speed
	0x0031 |   1 | 1st PC's ?????
	0x0032 |   1 | 1st PC's weapon slot?
	0x0033 |   1 | 1st PC's armor/clock/robe slot?
	0x0034 |   1 | 1st PC's accessory/shield slot
	0x0051 |   1 | 2nd PC's ?????
	0x0052 |   1 | 2nd PC's level
	0x0054 |   2 | 2nd PC's cur? HP
	0x0056 |   2 | 2nd PC's max? HP
	0x0058 |   2 | 2nd PC's cur? MP
	0x005A |   2 | 2nd PC's max? MP
	0x005C |   2 | 2nd PC's Power
	0x005E |   2 | 2nd PC's Magic
	0x0060 |   1 | 2nd PC's Speed
	0x0061 |   1 | 2nd PC's ?????
	0x0062 |   1 | 2nd PC's weapon slot?
	0x0063 |   1 | 2nd PC's armor/clock/robe slot?
	0x0064 |   1 | 2nd PC's accessory/shield slot
	0x0080 |   1 | Inventory slot 1 item type
	0x0081 |   1 | Inventory slot 1 item quantity
	0x0082 | 106 | Inventory slots 2 through 54
	0x00EC |   1 | Inventory slot 55 item type
	0x00ED |   1 | Inventory slot 55 item quantity
	0x00EE | 2*? | Inventory slots 56-?? (100 slots?)
	0x0280 |   ? | Start of what looks like quest flags?
	0x03FE |   2 | Checksum using 16-bit XOR

Default for 0x0002-0x10FF is 0xFF.  Default for 0x1100-1FFF is 0x00.  Unused areas generally follow this pattern.