Expand description
SNES internal-header detection.
Unlike the NES iNES header (a clean 16-byte prefix), the SNES header lives INSIDE the ROM
at a map-mode-dependent offset: LoROM $7FC0, HiROM $FFC0, ExHiROM $40FFC0 (plus an
optional 512-byte copier prefix to skip). Detection scores each candidate offset by
checksum / reset-vector / printable-title / map-mode plausibility and picks the best.
See docs/cartridge-format.md for the authoritative header-byte layout ($xFC0–$xFDF)
and the score heuristic.
Structs§
- Header
- A parsed SNES internal header.
Enums§
- Coprocessor
- On-cart coprocessor, derived from the chipset header byte (
$xFD6). - Header
Error - Errors from header detection.
- MapMode
- The cartridge map mode (header byte
$xFD5, low bits). Determines the base board. - Region
- Console region, derived from the destination-code header byte (
$xFD9).