Yu-Gi-Oh! Reshef of Destruction/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! Reshef of Destruction.

EWRAM

 Address  Size   Description
--------  ----   -----------
 2010400     4   ?
 2020DE1    14   Player's name
 2020DFC     4   ?
 2021790   801   Cards in Trunk
 2021AC2     1   Field ID (display, the actual value is at 0x2023FB0)
 2021C1C     4   Deck Capacity
 2021C20     4   Duelist Level
 2021C30     4   Deck Cost
 2021C38     2   Deck size
 2021C3A    80   Deck cards
 2021CF8     1   Language ID
 2021D10     ?   ?
 2021D40    44   CPU opponent's data, starting with CPU opponent's ID
 2021DA0     2   Link Duel Deck Capacity (max 65000)
 2021DB0     1   Game Mode
                  0x00
                  0x01 Campaign
                  0x02
                  0x03 Link Duel Menu
                  0x04 Trade Menu
 2021DB1     1   Menu ID (Continue screen)
 2021DD0     4   Money
 2023F10     2   Monster Area #1
 2023F18     2   Monster Area #2
 2023F20     2   Monster Area #3
 2023F28     2   Monster Area #4
 2023F30     2   Monster Area #5
 2023F38     2   Magic/Trap Area #1
 2023F40     2   Magic/Trap Area #2
 2023F48     2   Magic/Trap Area #3
 2023F50     2   Magic/Trap Area #4
 2023F58     2   Magic/Trap Area #5
 2023FB0     1   Field ID
 2023FBA     1   SoRL counter - CPU
 2023FC0     4   Pointer to current turn player's graveyard
 2023FC4     4   Pointer to current turn enemy's graveyard
 2023FD0     4   Pointer to current turn enemy's magic
 2023FE4     4   Pointer to current turn enemy's monsters
 2023FF8     4   Pointer to current turn player's monsters
 202400C     4   Pointer to current turn player's magic
 2024020     4   Pointer to current turn player's hand
 2024040     4   ?
 20240D8     2   Selected card
 20241F0     2   Cursor coordinates
 20241F2     1   What is being selected?
 2024200     1   # of Tributes
 2024250     2   Current activated effect
 2024254     2   Remaining Life Points (Displayed in the Status menu)
 2024258     2   Life Points (Player)
 202425A     2   Life Points (CPU)
 2024594     4   PRNG
 20245A8     1   Current Turn, 0 = Player, 1 = Enemy

RAM card format

This is how the game stores information related to cards in play or in hand. It's located in the above offsets.

Byte  Size   Description
----  ----   -----------
0000     2   Card ID
0002     1   # of permanent powerups
0003     1   # of temporary powerups
0004     1   Unknown
0005     1   Status flags; 1st bit determines if it can attack or not, 2nd bit determines battle position, 5th bit indicates face up or face down, 6th bit gives the card to opponent at the end of the turn
0006     2   Unused? Game doesn't erase it after a duel