Skip to content

Disassembler for the Gameboy/Gameboy Color/Sharp LR35902 processor.

Notifications You must be signed in to change notification settings

Darkshadows9/GB-Disassembler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gameboy Disassembler

This repository contains a dissassembler for the Gameboy's processor, the Sharp LR35902.

The disassembler's output contains Sharp LR35902 assembly capable of being assembled and linked by the RGBDS development suite.

Compile using GCC. Load in Visual Studio Code and build release. Alternatively, use GCC directly and target the src folder. I use -Wall, -ansi, and -O3 for release.

This is the output of the program's -h flag:

Your command:
%s

Use the following format:
[filename] [flags] [input] [output]
Flags:
[-h]elp: Display this help message. Also displayed when there are less than two arguments for the program, or if either of the last two arguments are flags.
[-j]umps: Label jumps instead of using pure hex values.
[-s]imple: Dump the header as if it was regular code. If size is less that 0x150, this is enabled automatically.

Examples:
%[program name] "Tetris.gb" "Tetris.asm"
%[program name] "Tetris.gb" "Tetris.asm"
%[program name] -j "Pokemon Silver.gbc" "Pokemon Silver.asm"
%[program name] -s -j "Random Code.gb" "Random Code.asm"

About

Disassembler for the Gameboy/Gameboy Color/Sharp LR35902 processor.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published