RepositoryKotlinFIFinland
GE

Gekkio/GhidraBoy

Sharp SM83 / Game Boy extension for Ghidra

287stars
30forks
8issues
1views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: game-boy

#1 Repository of the month

1
TINIX TRENDING·Topic: ghidra-extension

#1 Repository of the month

3
TINIX TRENDING·Topic: gameboy

#3 Repository of the month

GhidraBoy: Sharp SM83 / Game Boy extension for Ghidra

Very experimental! No compatibility guarantees!

Supported Ghidra versions:

  • 11.4.2
  • 11.4.1
  • 11.3.2
  • 11.3.1
  • 11.3
  • 11.2
  • 11.1.2
  • 11.1.1
  • 11.1

Tetris disassembly

Features

  • Sharp SM83 (CPU core used in Game Boy) support for Sleigh
  • Game Boy ROM loader:
    • Can load unbanked ROMs (<= 32kB, e.g. Tetris)
    • Can load banked ROMs (> 32kB, e.g. Pokemon)
    • Can load greyscale boot ROMs (DMG/DMG0/MGB/SGB/SGB2)
    • Can load color boot ROMs (CGB/CGB0)
  • Memory blocks based on the hardware memory map
    • Banked regions use overlays (TODO: figure out if there's a better way to support them)
    • GB vs GBC differences are handled (e.g. banked WRAM)
  • Symbols for hardware registers (0xFFxx range)
    • GB vs GBC differences are handled (e.g. existence of KEY1 register)
  • Game Boy cartridge header data types
    • Enumerated types for some things

How to install

  1. Download a prebuilt GhidraBoy release, or build it yourself.
  2. Start Ghidra
  3. File -> Install Extensions
  4. Press the plus icon ("Add extension")
  5. Choose the built or downloaded GhidraBoy zip file
  6. Restart Ghidra when prompted to load the extension properly

How to build

As a prerequisite, you need to have a Ghidra installation somewhere (an actual installation, not a copy of Ghidra source code!).

export GHIDRA_INSTALL_DIR=/path/to/ghidra
./gradlew

or

./gradlew -Pghidra.dir=/path/to/ghidra

You can then find a built extension .zip in the build/distributions directory.

Open questions / problems

  • Decompiler output is difficult to read if certain instructions are used (e.g. rotates, JP HL for jumptables)
  • Default "ASM calling convention" assumes all registers can be inputs and/or outputs. Inputs/outputs are often guessed incorrectly, so manual tuning is required for almost every function
  • Are overlays the only / the best solution for handling banked memory areas? Right now in banked ROMs every function call to 0x4000-0x7fff needs to be manually resolved to the correct bank(s)

License

Licensed under the Apache License, Version 2.0.

Similar Projects

Discover other similar projects and AI models.

RepositoryC
mgba-emu/mgba

mGBA Game Boy Advance Emulator

7.6k
Nov 30, 2026
RepositoryJava
bethington/ghidra-mcp

Ghidra MCP Server — 200+ MCP tools for AI-powered reverse engineering. GUI plugin + headless server, lazy tool loading, convention enforcement, batch operations, Ghidra Server integration, and Docker deployment.

6.4k
Nov 28, 2026
RepositoryC++
gbdev/rgbds

Rednex Game Boy Development System - An assembly toolchain for the Nintendo Game Boy and Game Boy Color

1.7k
Nov 29, 2026
RepositoryC++
drhelius/Gearboy

Game Boy / Game Boy Color / Super Game Boy emulator and debugger with embedded MCP server for macOS, Windows, Linux, BSD and RetroArch.

1.2k
Nov 27, 2026
RepositoryRust
Gekkio/mooneye-gb

A Game Boy research project and emulator written in Rust

967
Mar 16, 2023
RepositoryMarkdown
gbdev/pandocs

The single, most comprehensive Game Boy technical reference.

812
Dec 3, 2026
RepositoryC++
Zal0/ZGB

Game Boy / Color engine with lots of features

794
Aug 1, 2024
RepositoryC
SimonLarsen/tobutobugirl

An arcade platformer homebrew game for the Game Boy

308
Jan 26, 2019
Repository
Hack-with-Github/Awesome-Hacking

A collection of various awesome lists for hackers, pentesters and security researchers

127.3k
Oct 27, 2026