Difference between revisions of "Pokémon Trading Card Game:RAM map"

From Data Crystal
Jump to navigation Jump to search
(don't delete most of a page without a reason)
 
(59 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{rammap|game=Pokemon TCG}}
+
{{rammap|game=Pokémon Trading Card Game}}
* <tt>C200 to C23B</tt> - P1 cards' ingame locations.
+
==USA==
* <tt>C27E to C2B9</tt> - P1 library card order.
+
RAM map there: https://github.com/pret/poketcg/blob/master/src/wram.asm <br>
* <tt>C2BB to C2C0</tt> - P1 pokemon card indices.
+
Letting some data here for quick access though.
* <tt>C2C8 to C2CD</tt> - P1 pokemon health.
 
* <tt>C300 to C33B</tt> - P2 cards' ingame locations.
 
* <tt>C37E to C3B9</tt> - P2 library card order.
 
* <tt>C3BB to C3C0</tt> - P2 pokemon card indices.
 
* <tt>C3C8 to C3CD</tt> - P2 pokemon health.
 
* <tt>C400 to C409</tt> - <b>After a match</b>: Card IDs for booster pack contents.
 
* <tt>C400 to C43B</tt> - <b>During a match</b>: P1 deck card IDs
 
* <tt>C480 to C4BB</tt> - P2 deck card IDs
 
* <tt>CC00 .......</tt> - <b>During a match</b>: Number of Prizes
 
<b>Note</b>: A card index is an offset into the array at either C400 or C480, which when resolved gives you the card ID.
 
  
===Location Values===
+
===SRAM===
* <tt>00</tt> - Library
+
Address Size    Description
* <tt>01</tt> - Hand
+
------- ----    -----------
* <tt>02</tt> - Discard
+
  A101    227    Cards (including built decks) (SRAM)
* <tt>04</tt> - Removed from Game
+
  B701      2    Number of decks registered without name
* <tt>08</tt> - Prize
 
* <tt>10</tt> - Active
 
* <tt>11</tt> - Benched #1
 
* <tt>12</tt> - Benched #2
 
* <tt>13</tt> - Benched #3
 
* <tt>14</tt> - Benched #4
 
* <tt>15</tt> - Benched #5
 
  
===Card IDs===
+
===WRAM===
{|
+
Address Size    Description
|-
+
------- ----    -----------
! 00
+
  C001    227    Cards (excluding built decks)
| ?
+
  C200    60    P1 card positions during battle
! 32
+
  C27E    60    P1 deck card order during battle
| Charizard
+
  C2BB      6    P1 Pokémon on the field IDs
! 64
+
  C2C8      6    P1 Pokémon HPs
| Flying Pikachu
+
  C300    60    P2 card positions during battle
! 96
+
  C37E    60    P2 deck card order during battle
| Haunter (Fossil)
+
  C3BA      1    P2 Number of cards drawn from Deck
! C8
+
  C3BB      6    P2 Pokémon on the field IDs
| Imakuni?
+
  C3C8      6    P2 Pokémon HPs
|-
+
  C3E8      1    P2 Active Sub-status 1
! 01
+
  C3E8      1    P2 Active Sub-status 2
| Grass Energy
+
  C3E9      1    P2 Active Sub-status 3
! 33
+
  C3EA      1    P2 Active Sub-status 4
| Vulpix
+
  C3EB      1    P2 Active Sub-status 5
! 65
+
  C3EC      1    P2 Number of Prizes
| Surfing Pikachu
+
  C3ED      1    P2 Number of cards in Discard Pile
! 97
+
  C3EE      1    P2 Number of cards in hand
| Haunter
+
  C3EF      1    P2 Number of Pokémon in play
! C9
+
  C400    60    During battle : P1 deck
| Pokemon Trader
+
                Out of battle : Booster pack
|-
+
  C480    60    P2 deck
! 02
+
  CAC5      1    Time (frames)
| Fire Energy
+
  CAC6      1    Time (seconds)
! 34
+
  CAC7      1    Time (minutes)
| Ninetales
+
  CAC8      2    Time (hours)
! 66
+
  CACA      2    Pseudo Random Number
| Surfing Pikachu (2)
+
                Its value changes on:
! 98
+
                • coin toss (once)
| Gengar
+
                • deck shuffle (once)
! CA
+
                • random Attack (e. g. Lv. 68 Zapdos's Big Thunder) (once)
| Pokemon Breeder
+
                • random Pokémon Power (e. g. L. 40 Moltres's Firegiver) (once)
|-
+
                • Tutorial battle (set to predetermined value)
! 03
+
                • new game / continue menu (every frame)
| Water Energy
+
                • start menu (every frame)
! 35
+
                • building (every 60 frames)
| Ninetales (GB)
+
  CACC      1    PRNG count
! 67
+
  CC0B      1    Has an Energy card been played this turn ? (stays at 0 if Water Energy with Rain Dance)
| Raichu
+
  CC0D      1    Current player's turn
! 99
+
  CD0A      1    ?
| Drowzee
+
  CD0B      1    ?
! CB
+
  CD0D      1    Uppercase switch
| Clefairy Doll
+
  CDD2      1    P1 Prizes left
|-
+
  CF68    32    Amount of each card in selected color (deck builder)
! 04
+
  D0BB      1    [[Pokémon Trading Card Game:Notes#Room_IDs|Room ID]]
| Lightning Energy
+
  D0BC      1    x coordinate
! 36
+
  D0BD      1    y coordinate
| Growlithe
+
  D0BF      1    World Map mode
! 68
+
                  0x00: On
| Raichu (Fossil)
+
                  0x01: Off
! 9A
+
  D117      1    ?
| Hypno
+
  D11D      1    [[Pokémon Trading Card Game:Notes#Mail_IDs|Mail ID currently selected]]
! CC
+
  D11E    15    [[Pokémon Trading Card Game:Notes#Mail_IDs|Mail IDs  + already opened status]]
| Mysterious Fossil
+
  D12E      1    [[Pokémon Trading Card Game:Notes#Mail_IDs|Mail read + already opened status]]
|-
+
  D291      1    ?
! 05
+
  D32E      1    World Map cursor
| Fighting Energy
+
  D32F      1    Room ID (Copy)
! 37
+
  D3D2      1    Medals
| Arcanine (Promo)
+
  D669      1    Booster generation: Booster data offset
! 69
+
  D66A      1    Booster generation: Pseudo-Random Number between 0 and ''n''
| Magnemite
+
  D66B      1    ? (Booster generation)
! 9B
+
  D66C      1    ? (Booster generation)
| Mr. Mime
+
  D66D      1    ? (Booster generation, generated from array at 7:64E4 by func_7:6430)
! CD
+
  D66E      3    ? (Booster generation)
| Energy Retrieval
+
  D686    12    Booster data array (retrieved from 7:64E4)
|-
+
1:D334    1    Direction of character
! 06
+
                00 : Up
| Psychic Energy
+
                01 : Right
! 38
+
                02 : Down
| Arcanine
+
                03 : Left
! 6A
+
1:D4D5    1    Direction of character
| Magnemite (GB)
+
                1E : Up
! 9C
+
                1F : Right
| Jynx
+
                20 : Down
! CE
+
                21 : Left
| Super Energy Retrieval
+
1:D4D7    1    Direction of character
|-
+
                05 : Up
! 07
+
                DA : Right
| Double Colorless Energy
+
                E9 : Down
! 39
+
                00 : Left
| Ponyta
 
! 6B
 
| Magneton
 
! 9D
 
| Mewtwo
 
! CF
 
| Energy Search:
 
|-
 
! 08
 
| Bulbasaur
 
! 3A
 
| Rapidash
 
! 6C
 
| Magneton (Fossil)
 
! 9E
 
| Mewtwo (Promo)
 
! D0
 
| Energy Removal
 
|-
 
! 09
 
| Ivysaur
 
! 3B
 
| Magmar
 
! 6D
 
| Voltorb
 
! 9F
 
| Mewtwo (Promo 2)
 
! D1
 
| Super Energy Removal
 
|-
 
! 0A
 
| Venusaur (CP! Promo)
 
! 3C
 
| Magmar (Fossil)
 
! 6E
 
| Electrode (GB)
 
! A0
 
| Mew (Promo)
 
! D2
 
| Switch
 
|-
 
! 0B
 
| Venusaur
 
! 3D
 
| Flareon (GB)
 
! 6F
 
| Electrode (Jungle)
 
! A1
 
| Mew (CP! Promo)
 
! D3
 
| Pokemon Center
 
|-
 
! 0C
 
| Caterpie
 
! 3E
 
| Flareon (Jungle)
 
! 70
 
| Electabuzz (Promo)
 
! A2
 
| Mew
 
! D4
 
| Pokeball
 
|-
 
! 0D
 
| Metapod
 
! 3F
 
| Moltres
 
! 71
 
| Electabuzz
 
! A3
 
| Pidgey
 
! D5
 
| Scoop Up
 
|-
 
! 0E
 
| Butterfree
 
! 40
 
| Legendary Moltres
 
! 72
 
| Jolteon (GB)
 
! A4
 
| Pidgeotto
 
! D6
 
| Computer Search
 
|-
 
! 0F
 
| Weedle
 
! 41
 
| Squirtle
 
! 73
 
| Jolteon
 
! A5
 
| Pidgeot (GB)
 
! D7
 
| Pokedex
 
|-
 
! 10
 
| Kakuna
 
! 42
 
| Wartortle
 
! 74
 
| Zapdos
 
! A6
 
| Pidgeot (Jungle)
 
! D8
 
| Pluspower
 
|-
 
! 11
 
| Beedrill
 
! 43
 
| Blastoise
 
! 75
 
| Zapdos (Fossil)
 
! A7
 
| Rattata
 
! D9
 
| Defender
 
|-
 
! 12
 
| Ekans
 
! 44
 
| Psyduck
 
! 76
 
| Legendary Zapdos
 
! A8
 
| Raticate
 
! DA
 
| Item Finder
 
|-
 
! 13
 
| Arbok
 
! 45
 
| Golduck
 
! 77
 
| Sandshrew
 
! A9
 
| Spearow
 
! DB
 
| Gust of Wind
 
|-
 
! 14
 
| Nidoran Female
 
! 46
 
| Poliwag
 
! 78
 
| Sandslash
 
! AA
 
| Fearow
 
! DC
 
| Devolution Spray
 
|-
 
! 15
 
| Nidorina
 
! 47
 
| Poliwhirl
 
! 79
 
| Diglett
 
! AB
 
| Clefairy
 
! DD
 
| Potion
 
|-
 
! 16
 
| Nidoqueen
 
! 48
 
| Poliwrath
 
! 7A
 
| Dugtrio
 
! AC
 
| Clefable
 
! DE
 
| Super Potion
 
|-
 
! 17
 
| Nidoran Male
 
! 49
 
| Tentacool
 
! 7B
 
| Mankey
 
! AD
 
| Jigglypuff (Promo)
 
! DF
 
| Full Heal
 
|-
 
! 18
 
| Nidorino
 
! 4A
 
| Tentacruel
 
! 7C
 
| Primeape
 
! AE
 
| Jigglypuff (GB)
 
! E0
 
| Revive
 
|-
 
! 19
 
| Nidoking
 
! 4B
 
| Seel
 
! 7D
 
| Machop
 
! AF
 
| Jigglypuff (Jungle)
 
! E1
 
| Maintenance
 
|-
 
! 1A
 
| Zubat
 
! 4C
 
| Dewgong
 
! 7E
 
| Machoke
 
! B0
 
| Wigglytuff
 
! E2
 
| Pokemon Flute
 
|-
 
! 1B
 
| Golbat
 
! 4D
 
| Shellder
 
! 7F
 
| Machamp
 
! B1
 
| Meowth (GB)
 
! E3
 
| Gambler
 
|-
 
! 1C
 
| Oddish
 
! 4E
 
| Cloister
 
! 80
 
| Geodude
 
! B2
 
| Meowth (Jungle)
 
! E4
 
| Recycle
 
|-
 
! 1D
 
| Gloom
 
! 4F
 
| Krabby
 
! 81
 
| Graveler
 
! B3
 
| Persian
 
|-
 
! 1E
 
| Vileplume
 
! 50
 
| Kingler
 
! 82
 
| Golem
 
! B4
 
| Farfetch'd
 
|-
 
! 1F
 
| Paras
 
! 51
 
| Horsea
 
! 83
 
| Onix
 
! B5
 
| Doduo
 
|-
 
! 20
 
| Parasect
 
! 52
 
| Seadra
 
! 84
 
| Cubone
 
! B6
 
| Dodrio
 
|-
 
! 21
 
| Venonat
 
! 53
 
| Goldeen
 
! 85
 
| Marowak (Jungle)
 
! B7
 
| Lickitung
 
|-
 
! 22
 
| Venomoth
 
! 54
 
| Seaking
 
! 86
 
| Marowak (GB)
 
! B8
 
| Chansey
 
|-
 
! 23
 
| Bellsprout
 
! 55
 
| Staryu
 
! 87
 
| Hitmonlee
 
! B9
 
| Kangaskhan
 
|-
 
! 24
 
| Weepinbell
 
! 56
 
| Starmie
 
! 88
 
| Hitmonchan
 
! BA
 
| Tauros
 
|-
 
! 25
 
| Victreebell
 
! 57
 
| Magikarp
 
! 89
 
| Rhyhorn
 
! BB
 
| Ditto
 
|-
 
! 26
 
| Grimer
 
! 58
 
| Gyarados
 
! 8A
 
| Rhydon
 
! BC
 
| Eevee
 
|-
 
! 27
 
| Muk
 
! 59
 
| Lapras
 
! 8B
 
| Kabuto
 
! BD
 
| Porygon
 
|-
 
! 28
 
| Exeggcute
 
! 5A
 
| Vaporeon (GB)
 
! 8C
 
| Kabutops
 
! BE
 
| Snorlax
 
|-
 
! 29
 
| Exeggutor
 
! 5B
 
| Vaporeon (Jungle)
 
! 8D
 
| Aerodactlyl
 
! BF
 
| Dratini
 
|-
 
! 2A
 
| Koffing
 
! 5C
 
| Omanyte
 
! 8E
 
| Abra
 
! C0
 
| Dragonair
 
|-
 
! 2B
 
| Wheezing
 
! 5D
 
| Omastar
 
! 8F
 
| Kadabra
 
! C1
 
| Legendary Dragonite
 
|-
 
! 2C
 
| Tangela (GB)
 
! 5E
 
| Articuno
 
! 90
 
| Alakazam
 
! C2
 
| Dragonite
 
|-
 
! 2D
 
| Tangela
 
! 5F
 
| Legendary Articuno
 
! 91
 
| Slowpoke (Promo)
 
! C3
 
| Professor Oak
 
|-
 
! 2E
 
| Scyther
 
! 60
 
| Pikachu
 
! 92
 
| Slowpoke (Fossil)
 
! C4
 
| Imposter Professor Oak
 
|-
 
! 2F
 
| Pinsir
 
! 61
 
| Pikachu (Jungle)
 
! 93
 
| Slowbro
 
! C5
 
| Bill
 
|-
 
! 30
 
| Charmander
 
! 62
 
| Pikachu (Promo)
 
! 94
 
| Gastly
 
! C6
 
| Mr. Fuji
 
|-
 
! 31
 
| Charmelion
 
! 63
 
| Pikachu (Promo 2)
 
! 95
 
| Gastly (Fossil)
 
! C7
 
| Lass
 
  
|}
+
===HRAM===
 +
Address Size    Description
 +
------- ----    -----------
 +
  FF80      1    ROM Bank
 +
  FF81      1    RAM Bank
 +
  FF82      1    VRAM Bank
 +
  FF97      1    Current turn
 +
  FFB6      1    ? (set to 0x10 by func_0:3C5A)
  
[[Category:Pokemon TCG]]
+
==Europe A==
 +
===WRAM===
 +
Address Size    Description
 +
------- ----    -----------
 +
  C591    20    Text to be copied to VRAM
 +
  CC04      1    Language
 +
                00 : English
 +
                01 : German
 +
                02 : French
 +
  CD10      1    ?
 +
  CD11      1    Character being read
 +
  CFEF    20    Deck name
 +
 
 +
{{Internal Data|game=Pokémon Trading Card Game}}

Latest revision as of 17:15, 21 June 2016

USA

RAM map there: https://github.com/pret/poketcg/blob/master/src/wram.asm
Letting some data here for quick access though.

SRAM

Address Size    Description
------- ----    -----------
 A101    227    Cards (including built decks) (SRAM)
 B701      2    Number of decks registered without name

WRAM

Address Size    Description
------- ----    -----------
 C001    227    Cards (excluding built decks)
 C200     60    P1 card positions during battle
 C27E     60    P1 deck card order during battle
 C2BB      6    P1 Pokémon on the field IDs
 C2C8      6    P1 Pokémon HPs
 C300     60    P2 card positions during battle
 C37E     60    P2 deck card order during battle
 C3BA      1    P2 Number of cards drawn from Deck
 C3BB      6    P2 Pokémon on the field IDs
 C3C8      6    P2 Pokémon HPs
 C3E8      1    P2 Active Sub-status 1
 C3E8      1    P2 Active Sub-status 2
 C3E9      1    P2 Active Sub-status 3
 C3EA      1    P2 Active Sub-status 4
 C3EB      1    P2 Active Sub-status 5
 C3EC      1    P2 Number of Prizes
 C3ED      1    P2 Number of cards in Discard Pile
 C3EE      1    P2 Number of cards in hand
 C3EF      1    P2 Number of Pokémon in play
 C400     60    During battle : P1 deck
                Out of battle : Booster pack
 C480     60    P2 deck
 CAC5      1    Time (frames)
 CAC6      1    Time (seconds)
 CAC7      1    Time (minutes)
 CAC8      2    Time (hours)
 CACA      2    Pseudo Random Number
                Its value changes on:
                • coin toss (once)
                • deck shuffle (once)
                • random Attack (e. g. Lv. 68 Zapdos's Big Thunder) (once)
                • random Pokémon Power (e. g. L. 40 Moltres's Firegiver) (once)
                • Tutorial battle (set to predetermined value)
                • new game / continue menu (every frame)
                • start menu (every frame)
                • building (every 60 frames)
 CACC      1    PRNG count
 CC0B      1    Has an Energy card been played this turn ? (stays at 0 if Water Energy with Rain Dance)
 CC0D      1    Current player's turn
 CD0A      1    ?
 CD0B      1    ?
 CD0D      1    Uppercase switch
 CDD2      1    P1 Prizes left
 CF68     32    Amount of each card in selected color (deck builder)
 D0BB      1    Room ID
 D0BC      1    x coordinate
 D0BD      1    y coordinate
 D0BF      1    World Map mode
                 0x00: On
                 0x01: Off
 D117      1    ?
 D11D      1    Mail ID currently selected
 D11E     15    Mail IDs  + already opened status
 D12E      1    Mail read + already opened status
 D291      1    ?
 D32E      1    World Map cursor
 D32F      1    Room ID (Copy)
 D3D2      1    Medals
 D669      1    Booster generation: Booster data offset
 D66A      1    Booster generation: Pseudo-Random Number between 0 and n
 D66B      1    ? (Booster generation)
 D66C      1    ? (Booster generation)
 D66D      1    ? (Booster generation, generated from array at 7:64E4 by func_7:6430)
 D66E      3    ? (Booster generation)
 D686     12    Booster data array (retrieved from 7:64E4)
1:D334     1    Direction of character
                00 : Up
                01 : Right
                02 : Down
                03 : Left
1:D4D5     1    Direction of character
                1E : Up
                1F : Right
                20 : Down
                21 : Left
1:D4D7     1    Direction of character
                05 : Up
                DA : Right
                E9 : Down
                00 : Left

HRAM

Address Size    Description
------- ----    -----------
 FF80      1    ROM Bank
 FF81      1    RAM Bank
 FF82      1    VRAM Bank
 FF97      1    Current turn
 FFB6      1    ? (set to 0x10 by func_0:3C5A)

Europe A

WRAM

Address Size    Description
------- ----    -----------
 C591     20    Text to be copied to VRAM
 CC04      1    Language
                00 : English
                01 : German
                02 : French
 CD10      1    ?
 CD11      1    Character being read
 CFEF     20    Deck name


Internal Data for Pokémon Trading Card Game

ROM MapRAM MapText TableNotesTutorials