TMHMDex/GS:211: Difference between revisions

From Glitch City Wiki
Jump to navigation Jump to search
Content added Content deleted
>Torchickens
(Created page with "(↑ Back to the TMHMDex index) {{ItemInfoGenII TMHM |1=TM20<br>File:GS TM20.png |2=D3 |3=211 |4=20CA }} '''TM20''' is a wrong pocket TMs and HMs|wrong poc...")
 
(Result from personal research / datamining. Note: after using the item for the 7th consecutive time, it falls through and modifies three addresses related to serial communication. I do not know if this ever does anything in practice. (The variables are wPrinterOpcode, $FF01, and $FF02.) Additionally, it still returns safely without any effect.)
Line 11: Line 11:


==Effect==
==Effect==

*Unknown effect (does not [[game freeze|freeze]] the game)
In Pokémon Gold, it executes code in ROM at 20CA (inside of the function LoadMapTimeOfDay.ClearBGMap, according to the pret/pokegold disassembly). It executes one useless instruction, then immediately returns and thus has no effect.

In Pokémon Silver, it executes code in ROM at 1ECA (inside of the function AskSerial, according to the pret/pokegold disassembly). It executes useless instructions, then always safely returns and thus has no effect.


{{clr}}
{{clr}}

Revision as of 00:19, 18 May 2022

(↑ Back to the TMHMDex index)

Name: TM20

Identifier (HEX): D3
Identifier (DEC): 211
Effect pointer: 20CA

TM20 is a wrong pocket TM in Pokémon Gold and Silver. Its description is "Always leaves at 1HP.".

Effect

In Pokémon Gold, it executes code in ROM at 20CA (inside of the function LoadMapTimeOfDay.ClearBGMap, according to the pret/pokegold disassembly). It executes one useless instruction, then immediately returns and thus has no effect.

In Pokémon Silver, it executes code in ROM at 1ECA (inside of the function AskSerial, according to the pret/pokegold disassembly). It executes useless instructions, then always safely returns and thus has no effect.