Fixed asma-test.sh
This commit is contained in:
parent
ad07c29935
commit
5d094603b0
|
@ -10,8 +10,8 @@ build_asma() {
|
||||||
cat <<EOD
|
cat <<EOD
|
||||||
|0100 @reset
|
|0100 @reset
|
||||||
;&source-file ;&dest-file ;asma-assemble-file JSR2
|
;&source-file ;&dest-file ;asma-assemble-file JSR2
|
||||||
;asma/error LDA2 #0000 NEQ2 JMP BRK
|
#01 .System/halt DEO
|
||||||
#0000 DIV
|
BRK
|
||||||
|
|
||||||
&source-file "in.tal 00
|
&source-file "in.tal 00
|
||||||
&dest-file "out.rom 00
|
&dest-file "out.rom 00
|
||||||
|
@ -33,7 +33,7 @@ expect_failure() {
|
||||||
echo 'Assembling asma with uxnasm'
|
echo 'Assembling asma with uxnasm'
|
||||||
build_asma > asma.tal
|
build_asma > asma.tal
|
||||||
../bin/uxnasm asma.tal asma.rom > uxnasm.log
|
../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}"
|
echo "Comparing assembly of ${F}"
|
||||||
BN="$(basename "${F%.tal}")"
|
BN="$(basename "${F%.tal}")"
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
( devices )
|
( 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 ]
|
|10 @Console [ &pad $8 &write $1 ]
|
||||||
|a0 @File [ &vector $2 &success $2 &offset $2 &pad $2 &name $2 &length $2 &load $2 &save $2 ]
|
|a0 @File [ &vector $2 &success $2 &offset $2 &pad $2 &name $2 &length $2 &load $2 &save $2 ]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue