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.

Yu-Gi-Oh! Duel Monsters 4: Kaiba Deck/RAM map: Difference between revisions

From Data Crystal
Jump to navigation Jump to search
(Attribute → Alignment (DM4 didn't feature any Attributes))
Line 16: Line 16:
   C5A0    2    ? (00'd by function 0:0207)
   C5A0    2    ? (00'd by function 0:0207)
   C5AE    1    ?
   C5AE    1    ?
   C5D9    1    [[Yu-Gi-Oh!_Duel_Monsters_4:_Kaiba_Deck:Notes#Field_IDs|Field ID]]
   C5D9    1    [[Yu-Gi-Oh! Duel Monsters 4: Kaiba Deck:Notes#Field IDs|Field ID]]
   C5B8    2    Life Points (Player)
   C5B8    2    Life Points (Player)
   C5BB    2    Life Points (CPU)
   C5BB    2    Life Points (CPU)
   C5D5    1    # of characters to display
   C5D5    1    # of characters to display
   C5DD    1    ? (set to 0 by [[Yu-Gi-Oh!_Duel_Monsters_4:_Kaiba_Deck:ROM_map#Card_display|Card display]] function)
   C5DD    1    ? (set to 0 by [[Yu-Gi-Oh! Duel Monsters 4: Kaiba Deck:ROM map#Card display|Card display]] function)
   C5F8    1    ? (related to deck)
   C5F8    1    ? (related to deck)
   C5FA    80    Player's deck
   C5FA    80    Player's deck
Line 32: Line 32:
   C6AC    1    Current Cost displayed
   C6AC    1    Current Cost displayed
   C6AD    1    Current Level displayed
   C6AD    1    Current Level displayed
   C6AE    1    Current Attribute displayed
   C6AE    1    Current Alignment displayed
   C6AF    1    Card Effect IDs (Magic Ritual Trap)
   C6AF    1    Card Effect IDs (Magic Ritual Trap)
   C6B0    1    Card Effect IDs (Monster)
   C6B0    1    Card Effect IDs (Monster)

Revision as of 17:03, 15 January 2019

Chip tiny.png The following article is a RAM map for Yu-Gi-Oh! Duel Monsters 4: Kaiba Deck.

SRAM

Address Size    Description
------- ----    -----------
 A4B7     2     Deck Capacity (SRAM) (Copy)
 B1AF     2     Deck Capacity (SRAM)

WRAM

Address Size    Description
------- ----    -----------
 C428     2     Pointer to the Music data being read
 C42A     1     ROM Bank to the Music data being read
 C42C     2     Music pointer
 C42E     2     Music ROM Bank
 C5A0     2     ? (00'd by function 0:0207)
 C5AE     1     ?
 C5D9     1     Field ID
 C5B8     2     Life Points (Player)
 C5BB     2     Life Points (CPU)
 C5D5     1     # of characters to display
 C5DD     1     ? (set to 0 by Card display function)
 C5F8     1     ? (related to deck)
 C5FA    80     Player's deck
 C69E     2     Current card ID displayed
 C6A3     2     Current card ID displayed (copy)
 C6A5     1     Current Column
 C6A6     1     Current Row
 C6A7     2     Current ATK displayed
 C6A9     2     Current DEF displayed
 C6AB     1     Current Type displayed
 C6AC     1     Current Cost displayed
 C6AD     1     Current Level displayed
 C6AE     1     Current Alignment displayed
 C6AF     1     Card Effect IDs (Magic Ritual Trap)
 C6B0     1     Card Effect IDs (Monster)
 C732     1     Character ID
 C733     1     Text ID
 C793    15     CPU's Hand + cards status
 C7BA    15     Player's cards on the Field + card status
 C7C9     3     Player's Trap + card status
 C7CC    15     Player's Hand + cards status
 C7DB     1     Current Column
 C7DC     1     Current Row
 C7DD    15     Current card + card status
 C8B4     1     Menu ID (main menu)
                0x00: Campaign
                0x01: Versus
                0x02: Password
                0x03: Duel Records
                0x04: Trade
                0x05: Sound Test
                0x06: Character Viewer
 C8D7     1     ?
 C8D8     1     ?
 C8D9     1     ?
 C8DA     1     ?
 C8DB     1     ?
 C8DC     1     ?
 C8F6     2     Current card (copy)
 C943    50     Duel Records (battles)
 C975    50     Duel Records (wins)
 CA55     1     Debug Character Viewer - Character ID
 CADD     2     Player's Graveyard
 CADF     2     CPU's Graveyard
2:D000  901     Cards in chest / trunk

HRAM

Address Size    Description
------- ----    -----------
  FFD7     2     Deck Capacity (HRAM)
  FFDD     1     System running the game
                 0x01 - Game Boy / Super Game Boy 1
                 0x11 - Game Boy Color
  FFDF     1     ?