Merge pull request #2653 from frotzer/fixeof

Fix Atari buffer overrun on keyboard EOF
This commit is contained in:
Christian Groessler
2025-05-20 07:41:00 +02:00
committed by GitHub

View File

@@ -147,6 +147,7 @@ icbll_copy:
sta dataptr+1
lda ICBLL,x
sta copylen
beq copied ; length = 0 if EOF
pha ; remember for return value
ldy #0
ldx index
@@ -159,7 +160,7 @@ copy: lda linebuf,x
bne copy
pla ; length
pha ; save length to return at okdone
copied: pha ; save length to return at okdone
clc
adc index