Browse code

Fixed asma-test.sh

Andrew Alderwick authored on 17/08/2021 19:33:53
Showing 2 changed files
... ...
@@ -10,8 +10,8 @@ build_asma() {
10 10
 	cat <<EOD
11 11
 |0100 @reset
12 12
 	;&source-file ;&dest-file ;asma-assemble-file JSR2
13
-	;asma/error LDA2 #0000 NEQ2 JMP BRK
14
-	#0000 DIV
13
+	#01 .System/halt DEO
14
+	BRK
15 15
 
16 16
 	&source-file "in.tal 00
17 17
 	&dest-file "out.rom 00
... ...
@@ -33,7 +33,7 @@ expect_failure() {
33 33
 echo 'Assembling asma with uxnasm'
34 34
 build_asma > asma.tal
35 35
 ../bin/uxnasm asma.tal asma.rom > uxnasm.log
36
-find ../projects -type f -name '*.tal' -not -name 'blank.tal' | sort | while read F; do
36
+for F in $(find ../projects -type f -name '*.tal' -not -name 'blank.tal'); do
37 37
 	echo "Comparing assembly of ${F}"
38 38
 	BN="$(basename "${F%.tal}")"
39 39
 
... ...
@@ -1,6 +1,6 @@
1 1
 ( devices )
2 2
 
3
-|00 @System     [ &vector $2 &wst      $1 &rst    $1 &pad   $4 &r      $2 &g     $2 &b      $2 ]
3
+|00 @System     [ &vector $2 &wst      $1 &rst    $1 &pad   $4 &r $2 &g $2 &b $2   &debug $1 &halt $1 ]
4 4
 |10 @Console    [ &pad    $8 &write    $1 ]
5 5
 |a0 @File       [ &vector $2 &success  $2 &offset $2 &pad   $2 &name  $2 &length $2 &load $2 &save $2 ]
6 6