mirror of
https://github.com/byteworksinc/ORCALib.git
synced 2025-04-13 07:37:09 +00:00
fread: do not try to read if EOF flag is set.
This behavior is implied by the specification of fread in terms of fgetc.
This commit is contained in:
parent
ef63f26c4f
commit
89b501f259
@ -1613,6 +1613,10 @@ p equ 5
|
||||
ph4 <stream verify that stream exists
|
||||
jsl ~VerifyStream
|
||||
jcs lb6
|
||||
ldy #FILE_flag quit if end of file has been reached
|
||||
lda [stream],Y
|
||||
bit #_IOEOF
|
||||
jne lb6
|
||||
mul4 element_size,count,rdRequestCount set the # of bytes
|
||||
move4 rdRequestCount,temp save full request count
|
||||
pb1 lda rdRequestCount quit if the request count is 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user