ItemDex/Y:114: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
No edit summary
No edit summary
Line 12: Line 12:
[[File:YItem72.png|link=]] (hex:72) is a [[glitch item]] in {{Yellow}}. Its name is taken from the untranslated string "プチマスター" (Petit Master) from the Japanese versions, resulting in [[mojibake]].
[[File:YItem72.png|link=]] (hex:72) is a [[glitch item]] in {{Yellow}}. Its name is taken from the untranslated string "プチマスター" (Petit Master) from the Japanese versions, resulting in [[mojibake]].


Although this glitch item's effect pointer is sourced from the ROM, using this glitch item will result in a range of behaviors that are not well understood, however its pointer is in the middle of VBlankCopyBgMap, which is supposed to be run from the start at 1BB5, will pop de multiple times (touching the stack) and may execute an unintended pointer from the stack.<ref>[https://pastebin.com/emrFZUmU Pokémon Yellow a little analysis of QMP (0x72) glitch item - Pastebin by Torchickens]</ref> If for whatever reason the program counter lands in RAM, it is technically possible to perform [[arbitrary code execution]] but there is no definitive method as of present.
Although this glitch item's effect pointer is sourced from the ROM, using this glitch item will result in a range of behaviors that are not well understood.

==Execution==
[[File:YItem72.png|link=]]'s pointer is in the middle of VBlankCopyBgMap, which is supposed to be run from the start at 1BB5, will pop de multiple times (touching the stack) and may execute an unintended pointer from the stack.<ref>[https://pastebin.com/emrFZUmU Pokémon Yellow a little analysis of QMP (0x72) glitch item - Pastebin by Torchickens]</ref> If for whatever reason the program counter lands in RAM, it is technically possible to perform [[arbitrary code execution]] but there is no definitive method as of present, and various scripts which typically work such as [[List of arbitrary code execution programs|Wack0's trigger Hall of Fame script]] may freeze but sometimes work if the corruption didn't affect its functioning.


Some of the effects include game freezes, and rarer effects such as (but not limited to) continuous changes to the memory addresses nearby the items pack ([[:User talk:Lucan Pera|example]]).
Some of the effects include game freezes, and rarer effects such as (but not limited to) continuous changes to the memory addresses nearby the items pack ([[:User talk:Lucan Pera|example]]).