CC57 arbitrary code execution

From Glitch City Wiki
Revision as of 13:57, 14 October 2019 by >Torchickens
Jump to navigation Jump to search

Arbitrary code execution is possible in Pokémon Red, Blue, and Yellow by modifying the value of memory address CC57 to a non-00 value. Many invalid CC57 values freeze the game or have unique effects. When the player activates CC57, it may disable text boxes however the arbitrary code execution persists on loop (like custom D36E-D36F map scripts). Unlike custom D36E-D36F map scripts, the CC57 persist even after changing maps.

In Red/Blue, invalid value 0xDD is an ideal CC57 script that executes F5D5 in Echo RAM (a copy of PC item 27). For Yellow, value 0x15 executes FA86 (Pokémon 6 in the current Pokémon storage system box).

This article or section is a stub. You can help Glitch City Wiki by expanding it.