scanf: report EOF for 's' conversions, is appropriate.

They should be treated as input failures if they got EOF before finding a non-whitespace character.
This commit is contained in:
Stephen Heumann 2021-02-09 15:43:03 -06:00
parent bc21593507
commit 6626aad7f0
1 changed files with 1 additions and 0 deletions

View File

@ -5096,6 +5096,7 @@ arg equ 11 argument
lb1 jsl ~getchar skip leading whitespace
cmp #EOF
bne lb2
sta ~eofFound
inc ~scanError
lda ~suppress (no assignment made)
bne lb6