... | ... |
@@ -6,8 +6,8 @@ mkdir asma-test |
6 | 6 |
cd asma-test |
7 | 7 |
|
8 | 8 |
build_asma() { |
9 |
- sed -ne '/^( devices )/,/^( vectors )/p' ../projects/software/asma.tal |
|
10 |
- cat <<EOD |
|
9 |
+ sed -ne '/^( devices )/,/^( vectors )/p' ../projects/software/asma.tal |
|
10 |
+ cat <<EOD |
|
11 | 11 |
|0100 @reset |
12 | 12 |
;&source-file ;&dest-file ;asma-assemble-file JSR2 |
13 | 13 |
;asma/error LDA2 #0000 NEQ2 JMP BRK |
... | ... |
@@ -21,12 +21,12 @@ EOD |
21 | 21 |
} |
22 | 22 |
|
23 | 23 |
expect_failure() { |
24 |
- cat > 'in.tal' |
|
25 |
- if ../bin/uxncli asma.rom > asma.log 2>/dev/null || ! grep -qF "${1}" asma.log; then |
|
26 |
- echo "error: asma didn't report error ${1} in faulty code" |
|
24 |
+ cat > 'in.tal' |
|
25 |
+ if ../bin/uxncli asma.rom > asma.log 2>/dev/null || ! grep -qF "${1}" asma.log; then |
|
26 |
+ echo "error: asma didn't report error ${1} in faulty code" |
|
27 | 27 |
tail asma.log |
28 |
- exit 1 |
|
29 |
- fi |
|
28 |
+ exit 1 |
|
29 |
+ fi |
|
30 | 30 |
} |
31 | 31 |
|
32 | 32 |
echo 'Assembling asma with uxnasm' |