(
Char
CONsole
OUTput)
VOID Cconout( ch )
WORD ch;
Opcode
2 (0x02)
Availability
Parameters
ch is a WORD value, however, only the lower 8 bits are sent through the output stream. The upper eight bits must be 0.
Binding
move.w ch,-(sp)
move.w #2,-(sp)
trap #1
addq.l #4,sp
Caveats
With
GEMDOS versions below 0.15, this handle should not be redirected to a write-only device as the call attempts to read from the output stream to process special keys.
Comments
No line feed translation is done at the time of output. To start a new line,
ASCII 13 and
ASCII 10 must both be sent.
See Also