Re: Arbitrary code execution in Red/Blue using the "8F" item
Posted by: Spoink
Date: 2016-07-15 21:21:35
Glitch City Laboratories closed on 1 September 2020 (announcement). This is an archived copy of a thread from Glitch City Laboratories Forums.
You can join Glitch City Research Institute to ask questions or discuss current developments.
You may also download the archive of this forum in .tar.gz, .sql.gz, or .sqlite.gz formats.
Speaking of which does anybody know how to check if address YYZZ is XX, and what the output will be
04 inc b
2b dec hl
0e YY ld c, YY
1e ZZ ld e, ZZ
51 ld d, c
1a ld a, [de]
0c inc c
77 ld [hl], a
C9 ret
On an other hand, is it possible to switch to invalid sound bank using 8F?
what could possibly happen if we use this code before enountering 4 4?
On an other hand, is it possible to switch to invalid sound bank using 8F?
That'd just require writing to C0EF and C0F0.
This should work :
Lemonade x[sound bank]
Carbos x 192
X Accuracy x239
Water Stone x119
TM01 x[any qty] OR Poké Ball x201
what could possibly happen if we use this code before enountering 4 4?
On an other hand, is it possible to switch to invalid sound bank using 8F?
That'd just require writing to C0EF and C0F0.
This should work :
Lemonade x[sound bank]
Carbos x 192
X Accuracy x239
Water Stone x119
TM01 x[any qty] OR Poké Ball x201
Hell if we know
C0EF and C0F0.
Actually, Pidgey can have as little as 190 hp at lvl 100. HP does have IV's in gen 1 and 2 games.
WRA1:d163 06 0f ld b,0f
WRA1:d165 24 inc h
WRA1:d166 24 inc h
WRA1:d167 2e 22 ld l,22
WRA1:d169 01 ff 0f ld bc,0fff
WRA1:d16c 00 nop
WRA1:d16d e9 jp hl
For the Nidoran, you can use trainer-fly to get one at level 1 and then EXP underflow it to 100.
Parasect can be obtained through trainer-fly as well. The first trainer in Blaine's gym has a Pokemon that corresponds to Parasect, so just lose to him to get one. You may need to use some item underflow trickery to get here if you don't have a Secret Key.
The Onix can be replaced with a Pidgey, which would jump to the 4th item in your list instead of the 3rd; Pidgey might be faster to obtain than Onix.
As for Rhydon, you can use the Old Man glitch to catch an 'M off the coast of Cinnabar. The first time you catch an 'M, it gets added to your Pokedex. After it plays the Pokedex entry, 'M magically becomes Rhydon.