Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 1.13 KB

File metadata and controls

34 lines (28 loc) · 1.13 KB

Main Status License

Game Boy disassembler

Disassembler for the Nintendo Gameboy DMG-01

Usage

Help

$ ./gameboy-disassembler --help
Usage: gameboy-disassembler [OPTIONS] --file <FILE>

Options:
  -f, --file <FILE>      Relative path pointing to GameBoy ROM
  -e, --entry <ENTRY>    Entry address for disassembly [default: 336]
  -a, --amount <AMOUNT>  Amount of instructions to decode from starting point [default: 8]
  -h, --help             Print help information

Running the disassembler

$ ./gameboy-disassembler --file ./snake.gb --entry 0x150
0x150 NOP
0x151 DI
0x152 LD SP, 0xFFFE
0x155 LD B, 0x80
0x157 LD C, 0x0
0x159 LDH A, (0x44)
0x15B CP 0x90
0x15D JR NZ, 0xFA

Credits for the test rom go to Yvar de Goffau snake.gb