Skip to content

Commit

Permalink
Revert comparison with line length to check error.
Browse files Browse the repository at this point in the history
The test fails with lines that have only the comment character.
  • Loading branch information
dmsc committed Feb 19, 2018
1 parent 1838cc6 commit 320cdaf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/parse.asm
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ skip_str:
ucase_end:

; Store line length to verify complete parsing
sty parse_line_len
tya
sec
adc buf_ptr
Expand Down Expand Up @@ -337,8 +336,8 @@ pexit_ok:
sta pptr+1
bne ploop
ldy bpos
cpy #00
parse_line_len=*-1
lda (bptr), y
cmp #$9B
bne set_parse_error
line_ok:
; Increases output buffer
Expand Down

0 comments on commit 320cdaf

Please sign in to comment.