diff --git a/etc/asma-test.sh b/etc/asma-test.sh index ba04123..9748ca1 100755 --- a/etc/asma-test.sh +++ b/etc/asma-test.sh @@ -43,6 +43,9 @@ EOD expect_failure 'Invalid hexadecimal: #defg' <<'EOD' |1000 #defg EOD +expect_failure 'Invalid hexadecimal: #' <<'EOD' +|1000 # +EOD expect_failure 'Address not in zero page: .hello' <<'EOD' |1000 @hello .hello diff --git a/projects/library/asma.tal b/projects/library/asma.tal index 56aef00..45da3e4 100644 --- a/projects/library/asma.tal +++ b/projects/library/asma.tal @@ -376,6 +376,7 @@ include projects/library/file-read-chunks.tal OR 00 otherwise ) ;asma/token LDA2 DUP2 ,strlen JSR ( token* length^ ) DUP2 #0004 GTH2 ,&fail2 JCN + ORAk #00 EQU ,&fail2 JCN &resume #0002 GTH2 ROT ROT LIT2r 0000