Yu-Gi-Oh! Worldwide Edition: Stairway to the Destined Duel/RAM map

From Data Crystal
Jump to navigation Jump to search

Chip tiny.png The following article is a RAM map for Yu-Gi-Oh! Worldwide Edition: Stairway to the Destined Duel.

EWRAM

 Address  Size   Description
--------  ----   -----------
 2011C2C  4324   Cards owned
                 vv wx yy zz
                 v - Cards in Trunk
                 w - Cards in Sideboard (2 less-significant bits)
                 x - Cards in Deck (2 most-significant bits)
                 y - bit 2: Password entered
 2013C28   120   Player's Deck
 2013CBE    40   Player's Fusion Deck
 2013CE8     1   Quantity of cards in Player's Deck
 2013CEA     1   Quantity of cards in Player's Sideboard
 2013CF8   112   Number of Wins / Losses against CPU opponents
 2013D7C     2   Duel Points
 2013D7E     1   Event flag ? (4th bit gets set after Pyramid is completed)
 2013D7F     2   Event handler ? (checked by Pyramid script among other things)
 2013D88     1   Card Limit option locked / unlocked (0xF)
 2013E04     2   Current Card ID
 2013E2C     2   Current displayed Monster ATK
 2013E30     2   Current displayed Monster DEF
 2014870     ?   ? (I'm on it atm)
 2014884     ?   ? (I'm on it atm, pointed at by instruction at 0x2C5A)
 2015BEC     4   CPU opponent group flags
                  For example, Mind-Controlled Tea is 0x180; bits 8 and 9 are set
 2017B21     1   Stars needed to Ritual Summon
 2017FB7     1   ? (bitflags used during card resolution ?)
 20182C0     1   ? (Card type ID for card being played?)
 20182C8     1   ? (Card subtype ID for card being played?)
 20182C2     2   Remaining amount of points to apply (Life Points gain, Damage, etc.)
 2018ACA     1   ? (probably indicates if the duel is continuing, if it's won or lost)
 2018ACC     ?   ?
 2018FE4     2   P1 Life Points
 2018FE7     1   Quantity of cards in Player's Deck
 20197A8   320   P1 Deck during duel (shuffled)
 2019D48     2   P2/CPU Life Points
 2019D4B     1   Quantity of cards in CPU's Deck
 201A50C   320   P2/CPU Deck during duel (shuffled). card_ids + 0x1000
 201D4DC     2   Column during a duel
 201D50C     2   ? (Used in Life Points management subroutine, as bitflags)
 201DE40     2   Position in Trunk
 201DE64         Player's Trunk
 201E6E2   160   Player's Deck (60 Deck + 20 Fusion)
 201E782    30   Player's Side Deck

IWRAM

 Address  Size   Description
--------  ----   -----------
 3000040     4   Pseudo-Random Number
 3000045     1   Pressed Trigger
                 FD - R
                 FE - L
 3000048     1   Joypad input
                 01 - A
                 02 - B
                 04 - Select
                 08 - Start
                 10 - →
                 20 - ←
                 40 - ↑ 
                 80 - ↓
 3000049     1   Pressed Trigger
                 FD - R
                 FE - L
 30048B0     1   cpu_opponent_internal_id
 3007A48    88   Stores types of cards in Player's deck before a duel begins