Welcome to Data Crystal's new home! Data Crystal is now part of the TCRF family (sort of).
The wiki has recently moved; please report any issues in Discord. Pardon the dust.

EarthBound/Door Destinations Table

From Data Crystal
< EarthBound
Revision as of 16:42, 10 May 2015 by Rydel (talk | contribs) (Created page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

Function Unknown

Unknown 2

Function Unknown

Y Coordinate and Direction

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

Controls the X-Coordinate of the destination.

Style=

Determines the style of the transition, using the same list as the [1F 21 XX} warps