We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22af491 commit 9a2f653Copy full SHA for 9a2f653
1 file changed
src/interp/input.asm
@@ -55,11 +55,15 @@ line_buf = LBUFF
55
56
sty IOERROR
57
sta line_buf - 1 ; Assume that this location is available
58
- beq no_eol ; EOF
+ beq no_eol ; No characters read
59
+ ; Error 136: end of file, keep last character
60
cpy #$88
61
beq no_eol
- tya
62
- bmi no_eol ; TODO: ERROR!?
+ ; TODO: do we need to handle other errors?
63
+ ; tya
64
+ ; bmi no_eol
65
+
66
+ ; Remove EOL at end of buffer
67
dec line_buf - 1
68
no_eol:
69
lda #<(line_buf-1)
0 commit comments