aboutsummaryrefslogtreecommitdiff
path: root/scripts/test-e2e.sh
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mssola@mssola.com>2026-09-06 21:42:34 +0200
committerMiquel Sabaté Solà <mssola@mssola.com>2026-09-06 21:42:34 +0200
commit9c685d5b6ca1686f944fb239ec89511f24801d44 (patch)
tree9b857312817aa1ba17b024adb412167c9c7604ae /scripts/test-e2e.sh
parent30a572b2b3815abaf17dcd2a848430935a4ba729 (diff)
downloadtools.nes-9c685d5b6ca1.tar.gz
tools.nes-9c685d5b6ca1.zip
vnf: also set the carry on a zero compare
Add also a test to further check corner cases on compare instructions. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'scripts/test-e2e.sh')
-rwxr-xr-xscripts/test-e2e.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/test-e2e.sh b/scripts/test-e2e.sh
index 7628ab4..be43685 100755
--- a/scripts/test-e2e.sh
+++ b/scripts/test-e2e.sh
@@ -288,6 +288,12 @@ echo "test: runrom => stack.nes"
diff tests/out/stack.txt tests/expected/runrom/stack.txt
exit_code=$((exit_code + $?))
+echo "test: runrom => cmp.nes"
+./target/debug/nasm -Werror --asan -o tests/out/cmp.nes tests/runrom/cmp.s
+./target/debug/runrom --function --dump-memory tests/out/cmp.nes > tests/out/cmp.txt
+diff tests/out/cmp.txt tests/expected/runrom/cmp.txt
+exit_code=$((exit_code + $?))
+
echo "test: runrom => misc.nes"
./target/debug/nasm -Werror --asan --write-info --allow-unused --out tests/out/misc.nes tests/runrom/misc.s
./target/debug/runrom --nasm .nasm --dump-memory --function tests/out/misc.nes > tests/out/misc-all.txt