Pokémon Red and Blue randomizer code: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
>Torchickens
(Created page with "This code allows the player to use an arbitrary code execution item as a wild Pokémon randomizer (grass and cave encounters supported), to be used with a bootstrap code t...")
 
No edit summary
Line 1: Line 1:
This code allows the player to use an [[arbitrary code execution]] item as a wild Pokémon randomizer (grass and cave encounters supported), to be used with a bootstrap code to slot 3.
This code allows the player to use an [[arbitrary code execution]] item as a wild Pokémon randomizer (grass and cave encounters supported), to be used with a bootstrap code to slot 3.


It uses [[OAM DMA hijacking]] to constantly write the random value of a d-sum address (specifically FFD3) in the main encounter table at D888.
It uses [[OAM DMA hijacking]] to constantly write the random value of a FFD3 (hRandomAdd) in the main encounter table at D888.


==Code==
==Code==