Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
irmen committed Jul 17, 2022
1 parent aeabf0f commit 473efbe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions compiler/res/prog8lib/diskio.p8
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,10 @@ _end rts
goto io_error

while not c64.READST() {
@(messageptr) = c64.CHRIN()
if @(messageptr) in "\r\n"
first_byte = c64.CHRIN()
if first_byte=='\r' or first_byte=='\n'
break
@(messageptr) = first_byte
messageptr++
}
@(messageptr) = 0
Expand Down

0 comments on commit 473efbe

Please sign in to comment.