citizen428/chip8-tools

Various tools related to the CHIP-8. Mirror of https://git.sr.ht/~citizen428/chip8-tools

★ 0Forks 0RustGitHub ↗Compare

README

chip8-tools

Various tools related to the CHIP-8.

Tools

Disassembler

Shows the instructions for a provided CHIP-8 ROM.

$ c8-disasm --help
Usage: c8-disasm [OPTIONS] --rom <ROM>

Options:
  -r, --rom <ROM>  The ROM file to disassemble
      --pc         Include the program counter
  -h, --help       Print help
  -V, --version    Print version

Example output (abbreviated):

JP 0x24E
0xEAAC
LD I, 0xAEA
RND V14, 0xAA
LD I, 0xAAE
0xE0A0
LD I, 0xE0
RND V0, 0x40
SNE V0, 0xE0
0xE020
...

The --pc argument can be used to display the program counter, starting from 0x200, the CHIP-8's load address:

200 JP 0x24E
202 0xEAAC
204 LD I, 0xAEA
206 RND V14, 0xAA
208 LD I, 0xAAE
20A 0xE0A0
20C LD I, 0xE0
20E RND V0, 0x40
210 SNE V0, 0xE0
212 0xE020
...

License

MIT License Copyright (c) 2025 Michael Kohl

For the full license text see LICENSE.

Contributors

citizen428

Issues