Crate gameboy_rom
source ·Expand description
A parser for Gameboy ROMS.
This crate provides a streaming Gameboy instruction parser as well as some
high-level types like RomHeader
and RomType
.
Basic validation is provided through the validate
method on RomHeader
.
Header logic based on info from the GB CPU Manual.
Opcode parsing logic was created with this opcode table as a reference.
Information from other places is and other places is called out in comments in the relevant files
Basic usage:
let rom = gameboy_rom::GameBoyRom::new(rom_buffer.as_slice());
let rom_header = rom.parse_header()?;
Re-exports
Modules
- Data types related to the ROM header that the parser can produce.
- Types related to the opcodes of the Gameboy parser.
- Utility functions for parsing
Structs
- Top level type for dealing with GameBoy ROMs.
- Streaming parser over GameBoy
Opcode
s.