Skip to content

Commit 320cdaf

Browse files
committed
Revert comparison with line length to check error.
The test fails with lines that have only the comment character.
1 parent 1838cc6 commit 320cdaf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/parse.asm

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ skip_str:
210210
ucase_end:
211211

212212
; Store line length to verify complete parsing
213-
sty parse_line_len
214213
tya
215214
sec
216215
adc buf_ptr
@@ -337,8 +336,8 @@ pexit_ok:
337336
sta pptr+1
338337
bne ploop
339338
ldy bpos
340-
cpy #00
341-
parse_line_len=*-1
339+
lda (bptr), y
340+
cmp #$9B
342341
bne set_parse_error
343342
line_ok:
344343
; Increases output buffer

0 commit comments

Comments
 (0)