diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-08-27 07:12:42 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-08-27 07:12:42 +0200 |
| commit | 50ebac34fec99c853b2f010bfd100c11b5e0a603 (patch) | |
| tree | 2353404e148fcf56019c478b05a449ad6331ea2e /scripts | |
| parent | 1bc9db2e8de21995fef2a4f59d8e1d20eef7d470 (diff) | |
| download | tools.nes-50ebac34fec99c853b2f010bfd100c11b5e0a603.tar.gz tools.nes-50ebac34fec99c853b2f010bfd100c11b5e0a603.zip | |
vnf: add support for all stack instructions
This also includes brk and rti, for which we are also storing and
exporting the break mark, just in case it can be useful to library users
in case they want to add error codes in break marks.
This commit also includes a fix for accounting the Z and N flags on
transfer instructions, which couldn't easily be split into a separate
commit, but it's a fairly simple change.
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/test-e2e.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/test-e2e.sh b/scripts/test-e2e.sh index 4496d85..7893274 100755 --- a/scripts/test-e2e.sh +++ b/scripts/test-e2e.sh @@ -282,6 +282,12 @@ echo "test: runrom => arithlog.nes" diff tests/out/arithlog.txt tests/expected/runrom/arithlog.txt exit_code=$((exit_code + $?)) +echo "test: runrom => stack.nes" +./target/debug/nasm -Werror -o tests/out/stack.nes tests/runrom/stack.s +./target/debug/runrom --function --dump-memory tests/out/stack.nes > tests/out/stack.txt +diff tests/out/stack.txt tests/expected/runrom/stack.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 @@ -297,6 +303,12 @@ diff tests/out/misc-foo.txt tests/expected/runrom/misc-foo.txt exit_code=$((exit_code + $?)) ## +# vnf-tests + +echo "test: vnf-tests" +cargo run --bin vnf-tests tests/ + +## # Done! exit $exit_code |
