From 8b1c270910fce13077864bf39d6e88971a6eb062 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 8 Jan 2025 12:34:47 +0100 Subject: Implement the .include statement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This needed some heavy lifting when it comes to how files were located. This means that statements like .include/.incbin now take into consideration a new list made out of SourceInfo, which holds enough information to translate from which file a node comes from. This has also been added into errors, so they are more informative on what went wrong. In order to tests this, besides all the regular unit tests, a new e2e test has been added. Signed-off-by: Miquel Sabaté Solà --- scripts/test-e2e.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/test-e2e.sh') diff --git a/scripts/test-e2e.sh b/scripts/test-e2e.sh index 89e787c..3f8729c 100755 --- a/scripts/test-e2e.sh +++ b/scripts/test-e2e.sh @@ -12,3 +12,6 @@ diff tests/out/sprite.nes tests/bin/sprite.nes ./target/debug/nasm -c unrom -o tests/out/chr-ram.nes tests/src/chr-ram.s diff tests/out/chr-ram.nes tests/bin/chr-ram.nes + +./target/debug/nasm -c nrom -Werror -o tests/out/flicker.nes tests/src/flicker/flicker.s +diff tests/out/flicker.nes tests/bin/flicker.nes -- cgit v1.2.3