aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mssola@mssola.com>2026-10-06 17:06:39 +0200
committerMiquel Sabaté Solà <mssola@mssola.com>2026-10-06 17:06:39 +0200
commitb2ec385bf83ad895208e7eb481f704cf8a12a6c6 (patch)
tree53fbf977ad7b7b0f59fabe0b0966696e16763f52 /scripts
parent994cd8561e2e08432fa5dcb4a86ad52b206fe360 (diff)
downloadtools.nes-b2ec385bf83ad895208e7eb481f704cf8a12a6c6.tar.gz
tools.nes-b2ec385bf83ad895208e7eb481f704cf8a12a6c6.zip
readrom: add support for MMC3
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à <mssola@mssola.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/test-e2e.sh9
1 files changed, 9 insertions, 0 deletions
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