From b2ec385bf83ad895208e7eb481f704cf8a12a6c6 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 6 Oct 2026 17:06:39 +0200 Subject: readrom: add support for MMC3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In theory it's support for any kind of memory mapper, but in practice only MMC3 has been added. Signed-off-by: Miquel Sabaté Solà --- scripts/test-e2e.sh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'scripts') diff --git a/scripts/test-e2e.sh b/scripts/test-e2e.sh index 4b9af90..21c4c7f 100755 --- a/scripts/test-e2e.sh +++ b/scripts/test-e2e.sh @@ -274,6 +274,15 @@ echo "test: readrom: full NMI disassembling (jetpac.nes)" diff tests/out/jetpac-full-nmi.txt tests/expected/readrom/jetpac-full-nmi.txt exit_code=$((exit_code + $?)) +echo "test: readrom: full NMI disassembling on MMC3 project (code.nes)" +./target/debug/nasm -c tests/code.nes/config/mmc3.cfg --asan --write-info -o tests/out/blink.nes tests/code.nes/fx/blink.s +./target/debug/readrom -d nmi -n tests/code.nes/.nasm/ --mmc "kind=mmc3; prg_rom_mode=0; r6=0; r7=1" tests/out/blink.nes > tests/out/blink-nmi.txt +diff tests/out/blink-nmi.txt tests/expected/readrom/blink-nmi.txt +exit_code=$((exit_code + $?)) + +# Remove the .nasm/ directory that has been created for code.nes. +rm -r tests/code.nes/.nasm + # Remove the dangling jetpac.nes ROM file. rm tests/out/jetpac.NTSC.nes -- cgit v1.2.3