If you are still using the old URL (datacrystal.romhacking.net), please update your bookmarks! The old URL may stop working soon.
The current URL is datacrystal.tcrf.net.
The current URL is datacrystal.tcrf.net.
EarthBound/Door Destinations Table
Jump to navigation
Jump to search
Door Destinations Table | |
Game | EarthBound |
Start Address | 0x0F0200 |
End Address | 0x0F284E |
# of Entries | 53 |
Entry Length | 11 (0xB) |
Total Length | 9807 bytes (0x264F) |
Back to the ROM map |
The Door Destinations Table stores the details on where each door in the game leads, including any code that it calls the the direction you face after going through.
Format
Address
- Length: 4 bytes (0x4)
- Offset within entry: 0x0-0x3
- Range of values: 0x0-0x00FFFFFF, but it must point to valid text; may or may not require a pointer to the ROM as opposed to RAM
The code to call when entering this door
Unknown 1
- Length: 1 bytes (0x1)
- Offset within entry: 0x4
- Range of values: 0x0-0xFF
Function Unknown
Unknown 2
- Length: 1 bytes (0x1)
- Offset within entry: 0x5
- Range of values: 0x0-0xFF
Function Unknown
Y Coordinate and Direction
- Length: 2 bytes (0x2)
- Offset within entry: 0x6-0x7
- Range of values: 0x0-0xFFFF
These bytes control both the Y-Coordinate of the destination and the direction you face after entering. The highest 2 bits of the second byte control the direction, with the remaining 6 bits controlling being the upper byte for the Y-Coordinate
X Coordinate
- Length: 2 bytes (0x2)
- Offset within entry: 0x8-0x9
- Range of values: 0x0-0xFFFF
Controls the X-Coordinate of the destination.
Style=
- Length: 1 bytes (0x1)
- Offset within entry: 0xA
- Range of values: 0x0-0xFF
Determines the style of the transition, using the same list as the [1F 21 XX} warps