Skip to content
Techniques & Technology

Arbitrary Code Execution

Playing the game's memory

The most powerful speedrunning exploit - manipulating game memory through normal inputs to execute arbitrary code, enabling impossible shortcuts and instant wins.

cross-platform speedrunningexploitmemoryglitch

Overview

Arbitrary Code Execution (ACE) is the most powerful class of speedrunning exploit. By manipulating game memory through careful input sequences, runners can make the game execute code of their choosing—including jumping directly to the ending or triggering credits.

Fast Facts

  • What: Execute custom code via gameplay
  • How: Memory manipulation through inputs
  • Result: Nearly anything possible
  • Category: Usually separated from “glitchless”

How ACE Works

StepProcess
1Find memory corruption bug
2Identify exploitable memory region
3Craft input sequence as “code”
4Trigger execution
5Game runs crafted instructions

Prerequisites

ACE requires:

RequirementPurpose
Memory overflowWrite to unintended locations
Controllable dataPlayer inputs become code
Execution triggerJump to corrupted area

Famous ACE Examples

GameAchievement
Super Mario WorldCredits warp via controller inputs
PokemonComplete control of game state
Zelda: OoTInstant ending
Super Mario Bros. 3Controller-based ACE

Categories and ACE

CategoryACE Status
Any%Often allowed
No ACECommon restriction
GlitchlessACE prohibited
TASACE demonstrations popular

Technical Depth

ACE demonstrates:

ConceptApplication
Memory layoutHow games store data
Code executionHow CPUs run programs
SecurityWhy bounds checking matters
ExploitationGeneral security concepts

TAS and ACE

Tool-Assisted Speedruns use ACE for:

  • Demonstrating theoretical exploits
  • Entertainment runs
  • Total game control
  • “Playaround” creativity

Educational Value

Understanding ACE teaches:

  • Computer architecture fundamentals
  • Security concepts
  • Memory management
  • Low-level programming

Legacy

ACE represents the ultimate mastery of a game—understanding it so completely that players can make it do anything, including things developers never imagined possible.

See Also