ItemDex/RB:093: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
>Bbbbbbbbba
m (Added a link.)
>Sherkel
mNo edit summary
Line 13: Line 13:
[[File:8F glitch item name.png|link=]] (hex:5D) is a [[glitch item]] in {{RB}}, with [[index number]] 93 (hex:5D). The actual use of the item is for use in the Silph Co. elevator.
[[File:8F glitch item name.png|link=]] (hex:5D) is a [[glitch item]] in {{RB}}, with [[index number]] 93 (hex:5D). The actual use of the item is for use in the Silph Co. elevator.


This glitch item's effect pointer is D163 in WRAM, which is the beginning of the party Pokémon data in memory, similar to Japanese Red/Green/Blue's [[ItemDexJP/RGB:090|5かい]]. As such it is very popular for [[arbitrary code execution]] as a bootstrap code to items can be represented with party Pokémon here.
This glitch item's effect pointer is D163 in WRAM, which is the beginning of the party Pokémon data in memory, similar to Japanese Red/Green/Blue's [[ItemDexJP/RGB:090|5かい]]. As such it is very popular for [[arbitrary code execution]], as a bootstrap code to items can be written using the species of Pokémon in the party.


==Usage==
==Usage==
Line 22: Line 22:


==Bootstrapping==
==Bootstrapping==
There exists multiple different bootstrapping strategies with 8F. Most of them jump to $D322, which is the third item in the item pack. The advantage of using the third item slot is that this allows 8F to be the first item, and another item that is not part of the code to be the second (which is useful if the payload modifies the item).
There exists multiple different bootstrapping strategies with 8F. Most of them jump to $D322, which is the third item in the item pack. The advantage of using the third item slot is that this allows 8F to be the first item, and another item that is unrelated to the code to be the second (which is useful if the payload modifies the item).


===5 Pokémon "233 HP Pidgey" setup===
===5 Pokémon "233 HP Pidgey" setup===
Line 32: Line 32:
# Tentacool as the fourth Pokémon
# Tentacool as the fourth Pokémon
# Kangaskhan as the fifth Pokémon
# Kangaskhan as the fifth Pokémon
# Pidgey must have 233 current HP (it is OK to have a higher maximum HP)
# Pidgey must have 233 current HP (it is okay to have a higher maximum HP)


To obtain such a Pidgey, Rare Candy it up to Lv100, apply up to 10 HP Ups. If the Pidgey still does not have 233 HP it has bad DVs. In this case either try another Pidgey or do many battles with this Pidgey (preferably Trainer battles, they are quicker than wild encounters) until depositing and withdrawing it gives it 233 HP (see [[bp:Box trick|box trick]]).
To obtain such a Pidgey, Rare Candy it up to Lv100, apply up to 10 HP Ups. If the Pidgey still does not have 233 HP it has bad DVs. In this case either try another Pidgey or do many battles with this Pidgey (preferably Trainer battles, they are quicker than wild encounters) until depositing and withdrawing it gives it 233 HP (see [[bp:Box trick|box trick]]).
Line 107: Line 107:


===In other European versions===
===In other European versions===
In other European versions, the 8F item is named 7EME ETAGE (French) / S7 (German) / 7°P (Italian) / P7 (Spanish). It still executes code the same way, but the setup will be different, because the memory layout for those localizations is slightly different, with the third item at $D327 rather than $D322.
In other European versions, the 8F item is named 7EME ETAGE (French) / S7 (German) / 7°P (Italian) / P7 (Spanish). It still executes code the same way, but the setup will be different due to differences in the memory layout, with the third item at $D327 rather than $D322.


For the above three setups, the common fix is to replace the Onix with a Graveler (or to replace the Tangela with a Fearow to run code starting from item 1).
For the above three setups, the common fix is to replace the Onix with a Graveler (or to replace the Tangela with a Fearow to run code starting from item 1).