Jump to content

ItemDex/Y:089: Difference between revisions

Moved bootstrap strategies here.
>Torchickens
No edit summary
>Bbbbbbbbba
(Moved bootstrap strategies here.)
Line 15:
 
However it may be preferable to use [[ItemDex/Y:099|ws m (hex:63)]] if on a console/emulator that doesn't properly support Echo RAM.
 
{{clr}}
==Bootstrapping==
{{YouTube|AxNliiLzA0Q|ChickasaurusGL}}
Although the possibility of 4F arbitrary code execution is previously known, the credit for convenient bootstrapping setups goes to Krys3000, who posted them in [http://forums.glitchcity.info/index.php?topic=8056.0 this thread] for both English and non-English Yellow games.
 
===English games===
Deposit and withdraw (or not) at the Day Care a Nidorina ('''that should not be evolved from a Nidoran♀'''), with Bite, Fury Swipes, Double Kick and Growl (the first two moves are placeholders and can be replaced with some other moves, but not just any move). Then, store in the active PC Box:
 
# Any lvl25 Pokémon with currently 24 HP, 33 PP currently for the first AND second move, 19 PP currently for the third move (3 PP Up used) and no fourth move or no PP currently on it
# Clefairy, Male Nidoran or Spearow (among many possibilities) with 233 HP
 
Using 4F will then [[Generation I item codes|execute code from the third item]].
 
<code><!-- TODO: Check that the translation is correct. -->
WRA1:DA64 <- 03 || inc bc<br />
WRA1:DA65 <- 78 || ld a,b<br />
WRA1:DA66 <- 2C || inc l<br />
WRA1:DA67 <- 9A || sbc d <br />
WRA1:DA68 <- 18 2D || jr DA97<br />
WRA1:DA97 <- 18 19 || jr DAB2<br />
WRA1:DAB2 <- 21 21 D3 || ld hl,D321<br />
WRA1:DAB5 <- 00 || nop<br />
WRA1:DAB6 <- 04 || inc b<br />
WRA1:DAB7 <- 00 || nop<br />
WRA1:DAB8 <- E9 || jp hl
</code>
 
The reason the Nidorina should not be evolved from a Nidoran♀ is that the bootstrapping code goes through the "catch rate" byte in the Pokémon's data, which is set when a Pokémon is caught, but not updated when it evolves. Therefore a Nidorina caught as a Nidoran♀ will have 0xEB (235) instead of 0x78 (120), which is an [[invalid opcode]] and may freeze the game (depending on the platform).
 
{{YouTubeyoutube|AxNliiLzA0Q|ChickasaurusGL}}
 
===European Non-English games===
Deposit and withdraw (or not) a lvl80 Pokémon with currently 24 HP in the Day Care. The, store in the active PC Box:
 
# Any Pokémon with 33 PP currently for the first move, 38 PP currently for the second move, 19 PP currently for the third move (3 PP Up used) and no fourth move or no PP currently on it
# Clefairy, Male Nidoran or Spearow (among many possibilities) with 233 HP
 
Using 4F will then [[Generation I item codes|execute code from the third item]].
 
<code><!-- TODO: Check that the translation is correct. -->
WRA1:DA64 <- 00 || nop<br />
WRA1:DA65 <- 18 50 || jr DAB7<br />
WRA1:DAB7 <- 21 26 D3 || ld hl,D326<br />
WRA1:DABA <- 00 || nop<br />
WRA1:DABB <- 04 || inc b<br />
WRA1:DABC <- 00 || nop<br />
WRA1:DABD <- E9 || jp hl
</code>
 
{{clr}}
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.