Hacking Pokemon Red to say Hello! - Game Boy
I created a video showing how to do a little bit of hacking/reverse programming on the Game Boy game Pokemon Red Version. This is a simple hack where we replace some text in the ROM. This video is not intended to be a tutorial, it is really just me setting down and recording myself going through the process of doing this hack. I’ve never done this particular kind of thing before on a Game Boy ROM so in a way we are learning it together.
The video
The tools
- Debugger - No$GMB
- Tile editor - Tile Designer
- Text editor - VS Code
- Hex editor - VS Code Hex Editor Plugin
- C compiler - Clang
- C check sum program - Sum C program code
TLDR; Steps
- Get your personal Pokemon Red Version Rom
- Create a copy of it and name it
original.gb
in case of mistakes - Open the Tile editor and create 1-11 tiles of whatever you wish
- Export all 11 tiles (even if you didn’t use 11) to a binary file
- Copy the binary output in a hex editor
- Open the Pokemon Red rom (not
original.gb
) - Locate address
0x000121F9
- Overwrite the values with the values from your binary file
- Copy this C program code to a file
- Compile the c code using Clang
- Pass your modified Pokemon Red rom into the compiled program
- Copy the last 4 numbers (2 bytes) of the
Sum:
output - Open the Pokemon Red rom (not
original.gb
) - Locate address
0x0000014E
and0x0000014F
- Replace those 2 bytes with the value you copied from the output of the program
- Save the rom
- Play the rom again in the debugger