Entry | |
---|---|
R0 | 10 (End of data) |
R2 | DeviceFS stream handle |
R3 | -1 |
Exit | |
---|---|
R3 | 0 if not end of data, or |
-1 if end of data |
This entry point is called when DeviceFS is asked if EOF has been reached, it will respond false if a buffered stream still has buffered data, or an unbuffered stream has a non-empty RX/TX word. Otherwise it calls this entry point.
Most devices will return -1 (EOF reached) but some (e.g. a scanner) may know that there is still data to come).