Jump to content

Coin Case glitches: Difference between revisions

>Torchickens
No edit summary
>Torchickens
Line 17:
The hex:57 character is still used as a terminator for "Coins: (x)" in the English versions (at offset 01985B0), but it is no longer a valid terminator there. The game jumps into memory at echo RAM address E112, which is essentially C112 and executes arbitrary code from there. This section of the memory can be changed by listening to cries, but if the player didn't listen to any cry, it is mainly 00 <!--I can't find a ret and I found an invalid opcode eventually, why doesn't the game freeze?-->, so 'nothing happens'.
 
When the player listens to a certain Pokémon cry before using the Coin Case, the game will execute code that has a noticeable effect, including glitch dimensions are, altered number of coins text and freezes, due to the data no longer being mainly 00.
 
Machop, Bellsprout and other Pokémon's cries are special because they put a hex:33 at ECHO:E117. This is read as the opcode 'inc sp' (increment stack pointer) causing the next 'ret' (return) to go elsewhere, specially to EB12, which contains overworld data. Even though there is no known way to predict the contents of this data, the results are consistent if you move in a specific pattern.
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.