From 9c685d5b6ca1686f944fb239ec89511f24801d44 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Sun, 6 Sep 2026 21:42:34 +0200 Subject: vnf: also set the carry on a zero compare MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add also a test to further check corner cases on compare instructions. Signed-off-by: Miquel Sabaté Solà --- scripts/test-e2e.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scripts') 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 -- cgit v1.2.3