TMHMDex/GS:211: Difference between revisions

From Glitch City Wiki
Jump to navigation Jump to search
Content added Content deleted
(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.)
m (Corrected the description according to the screenshot.)
 
Line 8: Line 8:
}}
}}


'''TM20''' is a [[wrong pocket TMs and HMs|wrong pocket TM]] in {{GS}}. Its description is "Always leaves at 1HP.".
'''TM20''' is a [[wrong pocket TMs and HMs|wrong pocket TM]] in {{GS}}. Its description is "Always leaves at least 1HP."


==Effect==
==Effect==

Latest revision as of 01:28, 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 least 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.