Browse code

Fixed error message when zero-page label is not found

Andrew Alderwick authored on 28/10/2021 22:12:49
Showing 2 changed files
... ...
@@ -70,5 +70,14 @@ EOD
70 70
 expect_failure 'Recursion level too deep: include' <<'EOD'
71 71
 include asma-test/in.tal
72 72
 EOD
73
+expect_failure 'Label not found: ;blah' <<'EOD'
74
+|1000 ;blah
75
+EOD
76
+expect_failure 'Label not found: ,blah' <<'EOD'
77
+|1000 ,blah
78
+EOD
79
+expect_failure 'Label not found: .blah' <<'EOD'
80
+|1000 .blah
81
+EOD
73 82
 echo 'All OK'
74 83
 
... ...
@@ -671,7 +671,11 @@ include projects/library/heap.tal
671 671
 	JMP2r
672 672
 
673 673
 	&not-zero-page
674
+	;asma/pass LDA #00 EQU
675
+		;asma/error LDA2 ORA
676
+		ORA ,&ignore-error JCN
674 677
 	;asma-msg-zero-page ;asma/error STA2
678
+	&ignore-error
675 679
 	JMP2r
676 680
 
677 681
 @asma-literal-rel-addr