Fixed error message when zero-page label is not found

This commit is contained in:
Andrew Alderwick 2021-10-28 23:12:49 +01:00
parent a635fea52f
commit 035e0d8a3a
2 changed files with 13 additions and 0 deletions

View File

@ -70,5 +70,14 @@ EOD
expect_failure 'Recursion level too deep: include' <<'EOD'
include asma-test/in.tal
EOD
expect_failure 'Label not found: ;blah' <<'EOD'
|1000 ;blah
EOD
expect_failure 'Label not found: ,blah' <<'EOD'
|1000 ,blah
EOD
expect_failure 'Label not found: .blah' <<'EOD'
|1000 .blah
EOD
echo 'All OK'

View File

@ -671,7 +671,11 @@ include projects/library/heap.tal
JMP2r
&not-zero-page
;asma/pass LDA #00 EQU
;asma/error LDA2 ORA
ORA ,&ignore-error JCN
;asma-msg-zero-page ;asma/error STA2
&ignore-error
JMP2r
@asma-literal-rel-addr