Crate gameboy_rom

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§

pub use crate::header::*;
pub use crate::opcodes::*;

Modules§

header
Data types related to the ROM header that the parser can produce.
opcodes
Types related to the opcodes of the Gameboy parser.
util
Utility functions for parsing

Structs§

GameBoyRom
Top level type for dealing with GameBoy ROMs.
OpcodeStreamer
Streaming parser over GameBoy Opcodes.