ZiLOG System 8000 User Manual page 46

Zeus operating system manual
Hide thumbs Also See for System 8000:
Table of Contents

Advertisement

USER
36
Example
CONSTANT
TYWR
:=
%06
SC
#TYWR
(character in RLO)
PUTMSG
Description
Zilog
USER
Sends a character string to the terminal.
Register R2
con-
tains
the
address
of the character string buffer, and the
first byte in the buffer contains the number
of
characters
to
be
displayed.
If there is no return in the string, the
entire specified string is displayed.
Otherwise, the string
is displayed up to and including the first return.
Register
contents RO, RI, and R2 are lost.
Example
CONSTANT
PUTHSG:= %OC
TTY
(string address in R2)
SC
#PUTl-ISG
Description
Receives and echoes at the terminal a character string up to
the
first
return.
The
character
string
is stored in a
buffer pointed to by register R2.
Register RI contains
the
size
of
the
buffer.
If the size of the character string
exceeds the size of the buffer, the zero flag is
set.
All
lowercase
alpha characters are converted to uppercase char-
acters before they are stored in the buffer.
RI returns the
actual number of characters received from the terminal.
The
contents of registers RO and R2 are lost.
Example
CONSTANT
TTY
:=
%08
SC
#TTY
(string address in R2, size in Rl)
Zilog
36

Advertisement

Table of Contents
loading

Table of Contents