User guide

42 CHAPTER 3. THE LIBRARY
scbt
net, scbt file, scbt ram, scbt console or scbt mbx, scbt tcp. The last three
have strictly positive values causing output to be triggered by end-of-line characters,
while the first three are negative and only trigger output when the IO buffer is full.
TCP streams have type net or tcp, streams to and from disk file have type file, stream
to or from a vector in main memory have type ram, mbx specifies mailbox streams, and
console indicates that the stream is either to standard output or from standard input
which are normally the screen and keyboard, respectively.
scb
task CIN:y, POS:y, NAT:n
Under Cintpos, this SCB field holds either zero or the number of the handl e r task
associated with the stream, if it has one.
scb
upb CIN:y, P O S: y, NAT:n
This constant is the upperb ound of a stre am control b l ock. its value is scb
size-1.
scb
wrfn CIN:y, POS:y, NAT:n
This SCB field is zero if the str eam cannot perform output, otherwise it is the
function to output (or deplete) the buffer. It is given the SCB as its argument and
returns TRUE if it successfully outputs the contents of the buffer. It otherwise returns
FALSE with an error code in result2.
scb
write CIN:y, POS:y, NAT:n
This SCB field is TRUE if the buffer has been updated by functions such as wrch
since it was last written out (depleted).
scbt
net, scbt file, scbt ram, scbt console, scbt mbx, scbt tcp
CIN:y, POS:y, NAT:n
These constants are mnemonics for the possible values of the type field of a stream
control block. See scb
type above.
sectword CIN:y, POS:y, NAT:n
The first word of every loaded section is sectword. This are normally followed by
a section name. Typically sectword=#x0000FDDF.
stackword CIN:y, POS:y, NAT:n
As an aid to debugging, all words in runtime stacks are initialised to stackword.
Typically stackword=#xABCD1234.
Sys
. . . CIN:y, POS:y, NAT:y
Manifest constants of the form Sys
... provide mnemonics for the operations
invoked by the sys function. The use of these manifest constants is described in pages
following Section 3.3 starting on page 62.
t
bhunk, t bhunk64, t end, t end64, t hunk, t hunk64, t reloc, t reloc64
CIN:y, POS:y, NAT:n
These are constants identifying components of Cintc ode object modules. Cintcode