Jump to content

Cart-swap arbitrary code execution: Difference between revisions

no edit summary
>Torchickens
No edit summary
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1:
{{Arbitrary code execution}}
{{Major glitches}}
'''Cart-swap arbitrary code execution''' is an exploit for Game Boy or Game Boy Color games running on a physical Game Boy Color or SNES; in which the player swaps one cartridge with another while the system is still running to transfer data or execute arbitrary code on the other.
Line 10 ⟶ 11:
During cart swap arbitrary code execution, interrupts usually must be disabled to prevent the game running code from the ROM which doesn't exist when the cartridge is removed.
 
On physical hardware, there is a possible failure where the Game Boy Color restarts to the boot ROM, but this can be avoided by trying again. Also this exploit does not work on a Game Boy Advance or Game Boy Advance SP.
==Applications==
*Force load a game, including CGB games in DMG mode. The game may be loaded with the wrong palette.
Line 108 ⟶ 110:
1) Use a Game Boy program writing exploit to write data.
 
In this example we write [httphttps://forums.glitchcity.info/index.php?topic=7773.0 offgao's memory editor] known as "Pocket Computer" ported by cryo and then use it as a tool to write the data for the cart-swap program.
 
For this example we write the Pocket Computer to data at DA80-DB7C using a modified version of TheZZAZZGlitch's method of writing and executing large programs.
Line 237 ⟶ 239:
Use 8F again and then swap the cartridge with a European version of Pokémon Trading Card Game and press any button. The game should boot to Pokémon Trading Card Game with Red/Blue's palette and you should be able to access the debug menu by choosing 'continue by diary'.
==External links==
*[httphttps://forums.glitchcity.info/index.php?topic=7722.0 Thread on Glitch City Laboratories forums]
==YouTube video==
{{YouTube|SL_Zuc0tlvo|TheZZAZZGlitch}}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.