Jump to content

Generation I item codes: Difference between revisions

no edit summary
(Added a sentence about how item codes are created in the first place.)
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 7:
Some of the item codes further assume that the jump is made by a "jp hl" instruction, which means that hl also contains the address of the third item. That means those item codes will not work with the "super-compressed" setups that jump to the code with "jp $xxyy" (or any other jump instruction), unless further steps are taken to set hl to the desired value.
 
See [httphttps://forums.glitchcity.info/index.php?topic=6638.0 the forum topic on 8F] for more examples of item codes. Item codes can also be generated from assembly code with the help of tools like [[GBz80 to Items]], or by manually referring to [[the Big HEX List]].
 
== Fix -gm bootstrap ==
Line 84:
Any item x Any qty
X Accuracy x(b2)
CarbonCarbos x(b3)
Max Revive x(b1)
Poké Ball x201
Line 95:
 
X Accuracy x56
CarbonCarbos x205
Max Revive x1
Poké Ball x201
Line 113:
 
Note: Pokémon obtained this way are registered in the Pokédex, so getting [[MissingNo.]] this way will duplicate the 6th item. It would be necessary to toss TM05 x128 before using the code again.
 
==Enter Hall of Fame==
A code to enter the Hall of Fame [https://archives.glitchcity.info/forums/board-115/thread-6638/page-4.html by Stackout].
 
8F
(any item) x (any)
Awakening x 22
Carbos x100
X Accuracy x187
X Attack x 64
TM05 x214
Revive x201
 
ld c,$16
ld h,$64
ld l,$bb
ld b,c
ld b,b
call $35d6
ret
 
<pre>0e 16 26 64 2e bb 41 40 cd d6 35 c9</pre>
 
== References ==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.