Arbitrary Code Execution

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ravenfreak
    Administrator
    • Jun 2025
    • 32

    #1

    Major Glitch Arbitrary Code Execution

    What in the world is Arbitrary Code Execution? Often abbreviated to ACE, it's a glitch that occurs in a few games where players can literarily hack the game using glitches. I'll be mainly talking about Pokemon Generation 1, but ACE can be performed in a few different games as well. First off let's start with the basics.

    1. Why is ACE even possible?
    ACE is possible because of how the Pokemon games were designed and programmed. Due to memory limitations, each piece of data in the game's code corresponds with each other. What I mean by that is each Item's hex value as well as pokemon data values match up together. Using other glitches to obtain glitched items that write code to certain RAM addresses allow ACE to work!

    2. How can you obtain the glitch items that allow you to use ACE in Generation 1 of Pokemon?
    Item underflow is a glitch that allows you to expand your item bag to break past the allocated part designed for just your item bag in the game. Once it starts branching out to other parts of the ROM, the game's memory will start reading other data as items. This allows you to get glitched items that write code to certain parts of memory. I'll make another thread about Item Underflow because that belongs in it's own thread.

    3. Is it easy to set up ACE?
    Well if you're familiar with how the Generation 1 games work on a technical level yes. If you're a novice then you will need to follow guides to a T to ensure you're getting the results the guide promises. It's a bit tricky at first and I would say this is a glitch that will take practice before you can fully use it to your advantage.

    4. What's the benefit of ACE?
    ACE can literally allow you to obtain key items early in the game. It can also help you rewrite memory and complete your Pokedex within minutes if done correctly. You can also speed run the game in record time using ACE. You can also easily catch all 151 Pokemon in one cartridge using this method and it might not take as long as it would if you relied on the trainer escape glitch. Also you can show off neat tricks using ACE by rewriting a Map using assets within the game just for fun!

    I will be adding tutorials to this thread at a later date but I wanted to make this one to go into some detail on what the heck ACE is. I want to also bring up what other games you can perform ACE in as well at some point but I'll need to do more research on that topic.
Working...