From d10d4fd6e6ed2c6939b5504a7de576fa5d4e5317 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 11 Feb 2026 17:15:31 +0100 Subject: Allow using a byte for indirect jumps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit They should be expanded to a 16-bit address from the zero-page. The fact that the assembler was complaining about it was simply erroneous. Signed-off-by: Miquel Sabaté Solà --- scripts/test-e2e.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scripts') diff --git a/scripts/test-e2e.sh b/scripts/test-e2e.sh index 06545b8..02d1ca3 100755 --- a/scripts/test-e2e.sh +++ b/scripts/test-e2e.sh @@ -95,6 +95,13 @@ exit_code=$((exit_code + $?)) diff tests/out/avoid_bad_macro.nes tests/expected/avoid_bad_macro.nes exit_code=$((exit_code + $?)) +echo "test: custom => indirect.nes" +./target/debug/nasm -c empty --asan tests/indirect.s -o tests/out/indirect.nes 2>tests/out/indirect.txt +diff tests/out/indirect.txt tests/expected/indirect.txt +exit_code=$((exit_code + $?)) +diff tests/out/indirect.nes tests/expected/indirect.nes +exit_code=$((exit_code + $?)) + ## # code.nes -- cgit v1.2.3