Pokémon Red/Blue disassembly

This is the disassembly for Pokémon Red and Blue

## WRAM

1. C0EF – the current audio bank
2. C0F0 - the saved audio bank
3. CC26 – where you left the cursor in the menu
4. CC35 – the item, move, or Pokémon currently selected
5. CC47 – if not in cable club, is player entering cable club? if in cable club, link timeout counter
6. CD38 – index for joypad simulation, if nonzero, disables collision but does not lock the player
7. CD6B – what buttons will be ignored (example: if the value here is 0x0E, the buttons B, Select, and Start will be ignored)
8. D057 - are you in battle?
9. D059 - when a trainer battle starts, this is set to a random value between C9 and F7
10. D05A - what type of battle is this?
11. D05D - the current roster used by the enemy trainer
12. D158 to D162 – the player's name, eleven bytes
13. D163 - how many Pokémon there are in your party
14. D164 to D169 – the Pokémon in your party
15. D16A – end of party (must be 0xFF if there's six Pokémon)
16. D16B to D196 – the first Pokémon's data
17. D197 to D1C2 – the second Pokémon's data
18. D1C3 to D1EE – the third Pokémon's data
19. D1EF to D21A – the fourth Pokémon's data
20. D21B to D246 – the fifth Pokémon's data
21. D247 to D272 – the sixth Pokémon's data
22. D273 to D2B4 – the original trainer names of your Pokémon
23. D2B5 to D2F6 – the nicknames of your Pokémon
24. D2F7 to D30A – the "owned" Pokédex flags
25. D30B to D31C – the "seen" Pokédex flags
26. D31D - how many items there are in your bag
27. D31E and D31F – item 1's identifier and quantity
28. D320 and D321 – item 2's identifier and quantity
29. D322 and D323 – item 3's identifier and quantity
30. D324 and D325 – item 4's identifier and quantity
31. D326 and D327 – item 5's identifier and quantity
32. D328 and D329 – item 6's identifier and quantity
33. D32A and D32B – item 7's identifier and quantity
34. D32C and D32D – item 8's identifier and quantity
35. D32E and D32F – item 9's identifier and quantity
36. D330 and D331 – item 10's identifier and quantity
37. D332 and D333 – item 11's identifier and quantity
38. D334 and D335 – item 12's identifier and quantity
39. D336 and D337 – item 13's identifier and quantity
40. D338 and D339 – item 14's identifier and quantity
41. D33A and D33B – item 15's identifier and quantity
42. D33C and D33D – item 16's identifier and quantity
43. D33E and D33F – item 17's identifier and quantity
44. D340 and D341 – item 18's identifier and quantity
45. D342 and D343 – item 19's identifier and quantity
46. D344 and D345 – item 20's identifier and quantity
47. D346 – end of list (must be 0xFF if you have 20 items)
48. D347 to D349 – the player's money (hexadecimal values are read as their visual decimal equivalent, 0x3000 is read as 3000, not 12288)
49. D34A to D354 – your rival's name
50. D355 – the options
51. D356 – how many badges you have
52. D35E – the current map you're in
53. D365 – the last map you were in
54. D36E to D36F – the level-script pointer of the map you're in
55. D887 – the grass encounter rate
56. D888 and D889 – level and species of possible grass encounter #1
57. D88A and D88B – level and species of possible grass encounter #2
58. D88C and D88D – level and species of possible grass encounter #3
59. D88E and D88F – level and species of possible grass encounter #4
60. D890 and D891 – level and species of possible grass encounter #5
61. D892 and D893 – level and species of possible grass encounter #6
62. D894 and D895 – level and species of possible grass encounter #7
63. D896 and D897 – level and species of possible grass encounter #8
64. D898 and D899 – level and species of possible grass encounter #9
65. D89A and D89B – level and species of possible grass encounter #10
66. D89C – the water encounter rate
67. D89D and D89E – level and species of possible water encounter #1
68. D89F and D8A0 – level and species of possible water encounter #2
69. D8A1 and D8A2 – level and species of possible water encounter #3
70. D8A3 and D8A4 – level and species of possible water encounter #4
71. D8A5 and D8A6 – level and species of possible water encounter #5
72. D8A7 and D8A8 – level and species of possible water encounter #6
73. D8A9 and D8AA – level and species of possible water encounter #7
74. D8AB and D8AC – level and species of possible water encounter #8
75. D8AD and D8AE – level and species of possible water encounter #9
76. D8AF and D8B0 – level and species of possible water encounter #10
77. DFFF – the end of WRAM