commit 5d094603b01d61025055328438803292e4bd7fa4 parent ad07c29935419abf534d689bed0d485c2e2bc549 Author: Andrew Alderwick <andrew@alderwick.co.uk> Date: Tue, 17 Aug 2021 20:33:53 +0100 Fixed asma-test.sh Diffstat:
M | etc/asma-test.sh | | | 6 | +++--- |
M | projects/software/asma.tal | | | 2 | +- |
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/etc/asma-test.sh b/etc/asma-test.sh @@ -10,8 +10,8 @@ build_asma() { cat <<EOD |0100 @reset ;&source-file ;&dest-file ;asma-assemble-file JSR2 - ;asma/error LDA2 #0000 NEQ2 JMP BRK - #0000 DIV + #01 .System/halt DEO + BRK &source-file "in.tal 00 &dest-file "out.rom 00 @@ -33,7 +33,7 @@ expect_failure() { echo 'Assembling asma with uxnasm' build_asma > asma.tal ../bin/uxnasm asma.tal asma.rom > uxnasm.log -find ../projects -type f -name '*.tal' -not -name 'blank.tal' | sort | while read F; do +for F in $(find ../projects -type f -name '*.tal' -not -name 'blank.tal'); do echo "Comparing assembly of ${F}" BN="$(basename "${F%.tal}")" diff --git a/projects/software/asma.tal b/projects/software/asma.tal @@ -1,6 +1,6 @@ ( devices ) -|00 @System [ &vector $2 &wst $1 &rst $1 &pad $4 &r $2 &g $2 &b $2 ] +|00 @System [ &vector $2 &wst $1 &rst $1 &pad $4 &r $2 &g $2 &b $2 &debug $1 &halt $1 ] |10 @Console [ &pad $8 &write $1 ] |a0 @File [ &vector $2 &success $2 &offset $2 &pad $2 &name $2 &length $2 &load $2 &save $2 ]