aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-09-03 03:36:06 +0200
committerhachem <im@hachem.wtf>2026-09-03 03:36:06 +0200
commit56ba8b2a373dd1386950592bda9c68ff9f25c203 (patch)
treee33d46037b8a0cb25f5c9052d1f2ee3b143dff22 /scripts
parent9956f626110a5b55fc58049bbe5841a98e941614 (diff)
fix: i JUST started using a static analyzer for ts
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/run.sh3
-rwxr-xr-xscripts/test_examples.sh1
2 files changed, 4 insertions, 0 deletions
diff --git a/scripts/run.sh b/scripts/run.sh
index 6d71521..01d3882 100755
--- a/scripts/run.sh
+++ b/scripts/run.sh
@@ -20,6 +20,9 @@ docker compose exec -T -e SRC="$file" -e NAME="$name" hdass bash -c '
premake5 gmake >/dev/null
make config=debug >/dev/null
./bin/debug-linux/hdass "$SRC" -o "/tmp/$NAME.asm"
+ echo
+ cat "/tmp/$NAME.asm"
+ echo
nasm -f elf64 "/tmp/$NAME.asm" -o "/tmp/$NAME.o"
ld -e main "/tmp/$NAME.o" -o "/tmp/$NAME"
set +e
diff --git a/scripts/test_examples.sh b/scripts/test_examples.sh
index 5290f09..c13ee1d 100755
--- a/scripts/test_examples.sh
+++ b/scripts/test_examples.sh
@@ -82,6 +82,7 @@ check branch "selects the larger of two values" examples/branch.hdass
check call "passes an argument through a proc" examples/call.hdass 21 ""
check logical "logical register names (r1..r14)" examples/logical.hdass 21 ""
check mul_div "multiply and non-rax division" examples/mul_div.hdass 8 ""
+check modulo "the modulo operator (%)" examples/modulo.hdass 24 ""
check load "stores then loads through a pointer" examples/load.hdass 7 ""
check constants "hex literals and constant folding" examples/constants.hdass 42 ""
check records "enum values and struct field offsets" examples/records.hdass 42 ""