Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 929 Bytes

GETC.2.adoc

File metadata and controls

46 lines (35 loc) · 929 Bytes

GETC(2) Manual Page

NAME

GETC - get a character from a stream

SYNOPSIS

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)

DESCRIPTION

Get a byte from the stream. parameter: stream number in x, returns data byte in a (with carry=0) or error code (carry=1)

RETURN CODES

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

AUTHOR

Written by André Fachat.

REPORTING BUGS