GETC - get a character from a stream
- Input
-
-
XR - stream number
-
- Call
-
jsr GETC
- Output
-
-
C=0
-
AC - byte read from stream
-
-
C=1
-
AC - error code
-
-
Note
|
XR and YR are not modified (except STDIO streams return true stream number) |
Get a byte from the stream. parameter: stream number in x, returns data byte in a (with carry=0) or error code (carry=1)
Error return codes are given when at return, C=1.
- E_NOSTR
-
no valid stream number
- E_SEMPTY
-
stream is empty
- E_EOF
-
stream is empty and no writer left
Please report bugs at https://github.com/fachat/GeckOS-V2/issues