mirror of
https://github.com/byteworksinc/ORCALib.git
synced 2024-06-09 18:29:27 +00:00
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:
parent
bc21593507
commit
6626aad7f0
|
@ -5096,6 +5096,7 @@ arg equ 11 argument
|
||||||
lb1 jsl ~getchar skip leading whitespace
|
lb1 jsl ~getchar skip leading whitespace
|
||||||
cmp #EOF
|
cmp #EOF
|
||||||
bne lb2
|
bne lb2
|
||||||
|
sta ~eofFound
|
||||||
inc ~scanError
|
inc ~scanError
|
||||||
lda ~suppress (no assignment made)
|
lda ~suppress (no assignment made)
|
||||||
bne lb6
|
bne lb6
|
||||||
|
|
Loading…
Reference in New Issue
Block a user