Skip to content
This repository was archived by the owner on Aug 3, 2025. It is now read-only.

Mari6814/pygbdis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pygbdis

Description

A simple disassembler written in Python for disassembling Game Boy-family ROMs (GB, GBC, GBA). Currently, only Game Boy (GBC) is supported.

Features

  • Disassembles GBC ROMs to annotated .asm files
  • Automatic or user-defined entrypoint support
  • Optional output formatting
  • Output to a chosen directory

Requirements

  • Python 3.7+

No external dependencies required.

Installation

Clone the repository:

git clone https://github.com/Mari6814/pygbdis.git
cd pygbdis

Usage

You can run the disassembler using Python's module interface:

python -m pygbdis path/to/game.gb [options]

Example

python -m pygbdis mygame.gb --entrypoint 0x100 --output out/

Arguments

Argument Description
input Path to the ROM file
--entrypoint, -e Start address for disassembly (auto by default, uses 0x100)
--arch Target architecture (currently only gbc supported)
--gbc Shortcut to set --arch gbc
--output, -o Output directory (default: out/)
--format, -f Optional format string to customize the disassembly output

Output

The disassembled .asm file will be saved to the specified output directory, with the same base name as the input ROM.

Example: Disassembling game.gb with --output out/ will produce:

out/game.asm

License

MIT License

About

Python Gamebody Disassembler Project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages