Cite as
“Pokemon - Red Version (USA, Europe) (SGB Enhanced)”
Licence
proprietary; never redistributed (docs/data-policy.md#roms)
Credit
Game Freak (developer), Nintendo (publisher)
Notes
The English Pokémon Red, 1 MB. pret/pokered builds it byte for byte (its roms.sha1 lists this SHA-1 for pokered.gbc), so the disassembly's labels and lines describe these bytes.

Cited on

Claims (15)

At full HP a Great Ball can catch more often than an Ultra Ball (computed): against a Bulbasaur (catch rate 45) with max HP 100 and no status, the Great Ball catches about 11.4% of the time and the Ultra Ball about 10.2%. A throw rolls two random numbers from 0 to 255, and on both a low roll is the one that catches. With no status, the first roll must be at or below the species' catch rate, its base-stats byte, which loading the opposing Pokémon copies in; the Great Ball rerolls any first roll above 200 and the Ultra Ball any above 150, so the Ultra Ball's first roll passes at least as often. The second roll must be at or below a target of max HP × 255, divided by 8 for the Great Ball or 12 for the Ultra Ball, then by a quarter of current HP (at least 1); a target above 255 catches with no second roll. The Great Ball's smaller divisor gives it the larger target, and with no status and a catch rate of 200 or more both first rolls always pass, so there the Great Ball never catches less often.0x383df-0x383e6Code
A wild Pokémon enters battle at full HP with no status. Its max HP is ⌊2(B+D)L/100⌋+L+10, capped at 999, where B is its species' base HP, L its level, and D its HP DV, with no stat-experience bonus. A DV is a hidden value from 0 to 15 that each Pokémon has for each stat. A wild Pokémon's attack, defense, speed, and special DVs are the four 4-bit halves of two random bytes drawn when the battle loads it, and its HP DV takes the lowest bit of each: 8 from attack, 4 from defense, 2 from speed, and 1 from special. A level 5 Bulbasaur (base HP 45) so has 19 to 21 max HP (computed). A trainer's Pokémon gets fixed DVs and keeps its party HP and status instead, and a transformed one keeps the DVs it had before transforming.0x383df-0x383e3Code
The game numbers 27 types, of which 15 have their own name: NORMAL to GHOST as 0 to 8, and FIRE to DRAGON as 20 to 26. Type 6 is named BIRD, and numbers 9 to 19 all point at NORMAL's name.0x27DAE-0x27E49Code
The 165 moves, by move number, each with its name, effect number, power, type, accuracy (a byte out of 255), and PP. 99 have a power above 1, up to EXPLOSION's 170; nine have a power of 1 (among them GUILLOTINE, SEISMIC TOSS, and DRAGON RAGE), and 57 have none. 78 of the moves are NORMAL. The lowest accuracy is 76 in 255, about 30%, for GUILLOTINE, HORN DRILL, and FISSURE; 104 moves have 255. PP runs from 5 to 40 in steps of 5.0x38000-0x383DD0xB0000-0xB060ECode
The game numbers its species 1 to 190 in an internal order that starts with RHYDON, KANGASKHAN, and NIDORAN♂, not the Pokédex's. 151 of the numbers are Pokémon, each with its Pokédex number in a second table, and the other 39 are named MISSINGNO. and have Pokédex number 0.0x1C21E-0x1C9890x41024-0x410E1Code
The 151 Pokémon's base data, in Pokédex order: five base stats, two types (89 Pokémon have one type, listed twice), catch rate, base experience, the moves it knows at level 1, and its growth rate. The five base stats add up to between 175 (CATERPIE and WEEDLE) and 590 (MEWTWO); MEW and DRAGONITE come next at 500. 80 Pokémon grow at the medium-fast rate, 40 medium-slow, 26 slow, and 5 fast; no Pokémon uses the other two of the six rates. Catch rate runs from 3 (ARTICUNO, ZAPDOS, MOLTRES, and MEWTWO) to 255 (fifteen Pokémon), and base HP from 10 (DIGLETT) to 250 (CHANSEY).0x425B-0x42760x383DE-0x394450x41024-0x410E1Code
The 50 TMs and 5 HMs, each the move it teaches, in the order of the TM/HM bits in a Pokémon's base data: TM01 to TM50, then HM01 to HM05.0x13773-0x137A9Code
The type chart is a list of 82 matchups, each an attacking type, a defending type, and a multiplier: 38 of 2, 38 of 0.5, and 6 of 0. GHOST against PSYCHIC is listed as 0, POISON against BUG and BUG against POISON as 2 each way, and ICE against FIRE isn't listed.0x3E474-0x3E569Code
The 97 items numbered $01 to $61, by item number, each with its name and its mart price, stored as six decimal digits in three bytes. 45 have a price above 0, the highest the NUGGET's 10,000; the last 14 are named as floors (B2F to 11F and B4F), each priced 0.0x4608-0x4A91Code
The 16 mart lists, in the order they're stored: each a $FE byte, the text command (TX_SCRIPT_MART) that the game's text routine sends to the mart dialogue, then a count and that many item numbers, from 1 item (a BICYCLE alone, in a list pret marks unreferenced) to 9. The second clerk on Celadon Dept. Store 2F sells nine TMs, item numbers $C9 and up; the item table has no row for them, so those cells show the raw item numbers.0x2443-0x24470x244A-0x24510x2454-0x245B0x245E-0x245F0x2462-0x24680x246B-0x24740x2477-0x24800x2483-0x248C0x248F-0x24940x2497-0x249E0x24A1-0x24A60x24A9-0x24AF0x24B2-0x24B70x24BA-0x24C10x24C4-0x24CA0x24CD-0x24D4Code
The six growth rates, each a formula in the level n, (a/b)n³ + cn² + dn − e, from four bytes: medium fast is n³; slightly fast (3/4)n³ + 10n² − 30; slightly slow (3/4)n³ + 20n² − 70; medium slow (6/5)n³ − 15n² + 100n − 140; fast (4/5)n³; and slow (5/4)n³.0x5901D-0x59034Code
Red and Blue have 57 lists of wild Pokémon, 570 rows in all: 55 for grass and cave floors, one map each, and two for water, one shared by Routes 19 and 20 and one for Route 21. Each list holds its encounter rate and ten slots, each a level and a species. Grass rates run from 8 (Viridian Forest) to 30 (the Safari Zone); both water lists are all Tentacool, at rate 5. The versions differ in 175 rows across 34 lists, always in the species, and in one row the level too: Pokémon Mansion B1F's slot 8 holds a level-42 Weezing in Red and a level-38 Magmar in Blue. A slot's chance is the same on every list. The species' names are as the game prints them.0xD0DF-0xD0F30xD0F5-0xD1090xD10B-0xD11F0xD121-0xD1350xD137-0xD14B0xD14D-0xD1610xD163-0xD1770xD179-0xD18D0xD18F-0xD1A30xD1A5-0xD1B90xD1BB-0xD1CF0xD1D1-0xD1E50xD1E7-0xD1FB0xD1FD-0xD2110xD213-0xD2270xD229-0xD23D0xD23F-0xD2530xD255-0xD2690xD26B-0xD27F0xD281-0xD2950xD297-0xD2AB0xD2B1-0xD2C50xD2C7-0xD2DB0xD2DD-0xD2F10xD2F3-0xD3070xD309-0xD31D0xD31F-0xD3330xD335-0xD3490xD34B-0xD35F0xD361-0xD3750xD377-0xD38B0xD38D-0xD3A10xD3A3-0xD3B70xD3B9-0xD3CD0xD3CF-0xD3E30xD3E5-0xD3F90xD3FC-0xD4250xD427-0xD43B0xD43D-0xD4510xD453-0xD4670xD469-0xD47D0xD47F-0xD4930xD495-0xD4A90xD4AB-0xD4BF0xD4C1-0xD4D50xD4D7-0xD5150xD517-0xD52B0xD52D-0xD5410xD543-0xD5570xD559-0xD56D0xD56F-0xD5830xD585-0xD5990xD59B-0xD5AF0xD5B1-0xD5C50xD0E0-0xD0F30xD0F6-0xD1090xD10C-0xD11F0xD122-0xD1350xD138-0xD14B0xD14E-0xD1610xD164-0xD1770xD17A-0xD18D0xD190-0xD1A30xD1A6-0xD1B90xD1BC-0xD1CF0xD1D2-0xD1E50xD1E8-0xD1FB0xD1FE-0xD2110xD214-0xD2270xD22A-0xD23D0xD240-0xD2530xD256-0xD2690xD26C-0xD27F0xD282-0xD2950xD298-0xD2AB0xD2B2-0xD2C50xD2C8-0xD2DB0xD2DE-0xD2F10xD2F4-0xD3070xD30A-0xD31D0xD320-0xD3330xD336-0xD3490xD34C-0xD35F0xD362-0xD3750xD378-0xD38B0xD38E-0xD3A10xD3A4-0xD3B70xD3BA-0xD3CD0xD3D0-0xD3E30xD3E6-0xD3F90xD3FD-0xD4100xD412-0xD4250xD428-0xD43B0xD43E-0xD4510xD454-0xD4670xD46A-0xD47D0xD480-0xD4930xD496-0xD4A90xD4AC-0xD4BF0xD4C2-0xD4D50xD4D8-0xD4EB0xD4ED-0xD5000xD502-0xD5150xD518-0xD52B0xD52E-0xD5410xD544-0xD5570xD55A-0xD56D0xD570-0xD5830xD586-0xD5990xD59C-0xD5AF0xD5B2-0xD5C50x41024-0x410E1Code
The Good Rod's list has two entries, a level-10 Goldeen and a level-10 Poliwag, on every map.0xE27F-0xE282Code
Without Focus Energy, a Pokémon with base Speed 115, such as Persian, lands a critical hit on 57 of 256 rolls with most moves and on 255 of 256 with Slash.0x3898f-0x38993Code
The hit-chance routine multiplies the accuracy byte by the attacker's accuracy-stage ratio and then by the defender's evasion-stage ratio, read in reverse; it truncates after each step, keeps at least 1, and caps the result at 255.0x3f6cb-0x3f6e4Code