From 4bf12db91feb5db98d65b518dbad0c1a8c6748df Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 6 Oct 2026 17:15:16 +0200 Subject: readrom: add support for default expansion device MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 15th byte from the NES 2.0 header was wilfully ignored, but it can be relevant to the end user. Hence, add support for it in the 'header' library, and add the frontend code into 'readrom'. The point is not to support every single thing out there, but I have added the stuff that I thought was most relevant, and we can add more items to it whenever the need appears. Signed-off-by: Miquel Sabaté Solà --- tests/expected/readrom/header.txt | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'tests/expected') diff --git a/tests/expected/readrom/header.txt b/tests/expected/readrom/header.txt index a2d4a81..fc963e0 100644 --- a/tests/expected/readrom/header.txt +++ b/tests/expected/readrom/header.txt @@ -1,11 +1,13 @@ Header: - Kind: NES 2.0 - PRG ROM size: 32768 bytes (32KB) - CHR ROM size: 8192 bytes (8KB) - Mapper: NROM - Mirroring: Horizontal - CPU/PPU timing: NTSC + Kind: NES 2.0 + PRG ROM size: 32768 bytes (32KB) + CHR ROM size: 8192 bytes (8KB) + Mapper: NROM + Mirroring: Horizontal + CPU/PPU timing: NTSC + Default Expansion Device: Unknown + Raw: [ 4E 45 53 1A 02 01 00 08 00 00 00 00 00 00 00 00 ] Vectors: - NMI: 0xa2f8 - Reset: 0xa3c2 - IRQ: 0xa3c1 + NMI: 0xa2f8 + Reset: 0xa3c2 + IRQ: 0xa3c1 -- cgit v1.2.3