Jump to content

RAM map (Boktai 3): Difference between revisions

no edit summary
(Created page with "This is the RAM map for Boktai 3 (J). = IWRAM = {| class="wikitable" |- ! Address || Type || Description |- | 0x03005308 || i32 || RNG index |} = EEPROM = ''TODO'' Save data checksums Category:Documentation Category:Boktai 3")
 
No edit summary
Line 1: Line 1:
This is the RAM map for Boktai 3 (J).
This is the RAM map for Boktai 3 (J).
= EWRAM =
{| class="wikitable"
|-
! Address || Type || Description
|-
| 0x02000580 || void* || Pointer to to Django's actor data?
|-
| + 0x30 || i16[3] || Current position
|-
| + 0x424 || i16 || Current HP
|-
| + 0x428 || i16 || Current ENE
|-
| 0x0203db08 || void* || Pointer to [[#World struct]], defaults to 0x0203e200 on hard reset (but moves on soft resets)
|-
| 0x0203c508 || void* || Pointer to [[#Stat struct]], defaults to 0x0203c400 on hard reset (but moves on soft resets)
|-
| 0x0203e308 || void* || Pointer to [[#Stat struct]], defaults to 0x0203c400 on hard reset (but moves on soft resets)
|}
== Stat struct ==
Access this struct via 0x0203c508. See also: [[Inventory (Boktai 3)]].
{| class="wikitable"
|-
! Offset || Type || Description
|-
| 0x18 || i16[4] || Stats (VIT/SPR/STR/?) - updated from *0x0200580 + ?? on screen transitions
|}
== World struct ==
Access this struct via 0x0203db08.
{| class="wikitable"
|-
! Offset || Type || Description
|-
|}
== Scratch struct ==
Access this struct via 0x0203e308.
{| class="wikitable"
|-
! Offset || Type || Description
|}


= IWRAM =
= IWRAM =
Line 6: Line 53:
|-
|-
! Address || Type || Description
! Address || Type || Description
|-
| 0x030052f4 || struct* || Pointer to current [[Map file]] descriptor (usually/always 0x02000010)
|-
| + 0x00 || i32 || Number of [[Map file#Zone data|Zones]]
|-
| + 0x04 || void* || Pointer to map file tile data
|-
| + 0x0c || void* || Pointer to map file zones
|-
| + 0x10 || void* || Pointer to map file unknown block 1
|-
| + 0x14 || void* || Pointer to map file unknown block 2
|-
|-
| 0x03005308 || i32 || [[Random_number_generator|RNG]] index
| 0x03005308 || i32 || [[Random_number_generator|RNG]] index
|-
| 0x03005418 || i16[3] || [[Coordinate systems|Camera]] position
|}
|}