Pokémon Red and Blue
The English release of the Generation I Pokémon games for Game Boy.
Facts
- Released
- 1996-02-27 (JP, as Red and Green); 1998-09-28 (NA, as Red and Blue)
- Genre
- Japanese role-playing game, Monster-taming
- Platforms
- Game Boy
- Developer
- Game Freak
- Publisher
- Nintendo
- Series
- Pokémon
- Code
- Disassembly by pret contributors
- Explainers
- Capture
Wild encounters - Evidence
- Code (6)
Wiki (1) - Sources
- 4
On this page
Game Freak’s Pokémon Red and Green came out in Japan in 1996, and the English Red and Blue in North America in 19981.
Its type effectiveness code is one table of 15 types, 82 rows2 and one routine. That routine applies STAB, then every matching row, truncating as it goes3. Ghost moves have no effect on Psychic types4. The effectiveness text follows only the last matching row5.
A step in grass starts a wild battle 25 times in 256 on Route 16.
Data
Mechanics
| Mechanic | Kind | How |
|---|---|---|
| Type effectiveness | 15 types | 15 types in 82 rows, each row truncating the damage in turn |
| Same-type attack bonus | Half again | damage plus half, just before the type rows |
| Damage formula | Attack over defense | level, power, and Attack over Defense, capped at 997 plus 2, then STAB, the type rows, and a 217–255 roll |
| Critical hit | From a stat | half the attacker's base Speed in 256, and eight times that for four high-critical moves |
| Hit chance | Move accuracy | an accuracy byte out of 256, so even a 100% move misses 1 time in 256 |
| Multi-hit attack | Repeat the first hit | 2–5 hits, every one copying the first hit's damage |
| Random encounter | By area | each step or turn in place in grass, on water, or anywhere in a cave rolls against the map's rate in 256, then picks one of 10 slots |
| Fleeing | Speed ratio | Speed at least the foe's escapes; otherwise 32 times Speed over a quarter of the foe's, plus 30 per try, out of 256 |
| Turn order | Priority, then Speed | Quick Attack goes first and Counter last, then the higher Speed, with a tie split evenly |
| Random number generator | Hardware-stirred | the hardware divider added to one byte and subtracted from another every frame |
| Music driver | Fractional tempo | a note lasts length × speed × tempo / 256 frames, the remainder carried to the next |
| Sampled sound | Wave channel | six 32-step waves for channel 3, copied into wave RAM on each note |
| Password and battery save | Battery save with a check value | one copy with a complemented 8-bit sum |
| Capture | Two rolls | a ball-limited byte less 25 or 12 for status against the catch rate, then a second byte against an HP term; the shakes on a miss are worked out with no roll |
| Physical/special split | By type | Fire, Water, Grass, Electric, Psychic, Ice, and Dragon moves use Special on both sides; the other types use Attack against Defense |
Every claim about this game, by concept (106)
References
- ^WikiBulbapedia, “Pokémon Red and Green Versions” · Bulbapedia, “Pokémon Red and Blue Versions”
How we know
Pokémon Red and Green came out in Japan on 27 February 1996; the English Red and Blue (developer Game Freak, publisher Nintendo, Game Boy, and Generation I core series) followed in North America on 28 September 1998.
Japan: February 27, 1996 … (Game Boy)
infobox, Release dates · archived copy ↗ Developer: Game Freak … Publisher: Nintendo … Part of: Generation I core series … North America: September 28, 1998 … (Game Boy)
infobox, Basic info and Release dates · archived copy ↗ - ^Codepret/pokeredtype_matchups.asm 1–85; type_constants.asm 1–28
How we know
Red and Blue's type chart has 82 non-neutral (attacker, defender, multiplier) rows over 15 types, ended by -1; unlisted pairs are neutral.
1TypeEffects: 2 ; attacker, defender, *= 3 db WATER, FIRE, SUPER_EFFECTIVE ⋮ 85 db -1 ; end
data/types/type_matchups.asm lines 1–85 at af51989 · upstream ↗ constants/type_constants.asm#L1-L28 · upstream ↗ - ^Codepret/pokeredcore.asm 5127–5185
How we know
In table order, each type chart row matching the move's type and either defender type sets damage to ; 0 marks a miss.
5161 call Multiply 5162 ld a, 10 5163 ldh [hDivisor], a 5164 ld b, 4 5165 call Divide
engine/battle/core.asm lines 5127–5185 at af51989 · upstream ↗ - ^Codepret/pokered · Bulbapedia, “Type/Type chart”type_matchups.asm 78
How we know
The Red/Blue type chart gives Ghost-type moves no effect on Psychic types.
78 db GHOST, PSYCHIC_TYPE, NO_EFFECTdata/types/type_matchups.asm line 78 at af51989 · upstream ↗ Ghost was made 2× against Psychic instead of 0×.
Changes: Between Generations I and II · archived copy ↗ - ^Codepret/pokeredcore.asm 5147–5153, 3718–3733, 3218–3229; display_effectiveness.asm 1–10
How we know
Each matching row overwrites one damage-multiplier byte, so the text follows the last row: above 10 is “super effective”, below 10 “not very effective”, and a miss reads “doesn't affect” only at 0.
5150 ld a, [hl] ; a = damage multiplier 5151 ldh [hMultiplier], a 5152 add b 5153 ld [wDamageMultipliers], a
engine/battle/core.asm lines 5147–5153 at af51989 · upstream ↗ 2 ld a, [wDamageMultipliers] 3 and $7F 4 cp EFFECTIVE
engine/battle/display_effectiveness.asm lines 1–10 at af51989 · upstream ↗ engine/battle/core.asm#L3718-L3733 · upstream ↗ engine/battle/core.asm#L3218-L3229 · upstream ↗ - ^Codepret/pokeredwild_encounters.asm 26–53; Route1.asm 1–2
How we know
A step, or a turn in place, that can meet a wild Pokémon finds one when a random byte is below the map's encounter rate, out of 256: Route 1's grass rate is 25, so a step in its grass finds one 25 times in 256.
engine/battle/wild_encounters.asm at af51989 Our readingthe step's tile picks the rate (not all quoted)26–33a random byte not below the rate: no battle50–531Route1WildMons: 2 def_grass_wildmons 25 ; encounter rate
data/wild/maps/Route1.asm lines 1–2 at af51989 · upstream ↗ - ^Codepret/pokeredtype_constants.asm 11; names.asm 40
How we know
The type constants still define a Bird type (
$06), with a name string, but no type chart row names it.11 const BIRD ; $06constants/type_constants.asm line 11 at af51989 · upstream ↗ 40.Bird: db "BIRD@"data/types/names.asm line 40 at af51989 · upstream ↗ Measured by a script. It fails if the result disagrees with the claim.
Sources
Code
- pret contributors. 2026. “pokered: disassembly of Pokémon Red and Blue.” pret. Commit af51989. pret/pokered @ af51989 · licence, all uses
Secondary
- Bulbapedia contributors. 2026. “Pokémon Red and Green Versions.” Bulbapedia (Bulbagarden). revision 4548271. original · archived · licence, all uses
- Bulbapedia contributors. 2026. “Pokémon Red and Blue Versions.” Bulbapedia (Bulbagarden). revision 4625721. original · archived · licence, all uses
- Bulbapedia contributors. 2026. “Type/Type chart.” Bulbapedia (Bulbagarden). revision 4615556. original · archived · licence, all uses