Download Print this page

Motorola EXORdisk II User Manual page 281

Advertisement

INPUT/OUTPUT
FUNCTIONS
25.2 -- Device Dependent 1/0 Functions
the printer at the end of each
st~ing.
The
.PRINX
function
will,
in addition, send a carriage return/line feed seq,uence
for each embedded carriage return character.
ENTRY
PARAMETERS:
EXIT CONDITIONS:
x =
The address of
a
displayable
ASCII
string.
The
string
must
be
terminated
by
a carriage return (SOD)
i
r
us
ing
.
PRINT.
OtherUli
S8,
th e
string must
be
terminated
by
an
EOT
($04).
The
.PRINX
function
will
convert
embedded
carriage
return
characters
into carriage return/line
feed seq,uences automatically.
A and B registers
are
unchanged.
x
=
The
address
or
the
string's
terminating character.
CC fs
indeterminate.
25.2.4.1
Example of printer output
.
The
following example
illust~ates
the use of the. PRINT
system function.
The
example will pl'int
strings.
of
eighty
identical
characters,
beginning
~ith
spaces
($20)
and
proceeding through the
entire
displayable
ASCII
character
set.
The
s~stem
function
. STeHR is used to fill a buffer
with
the
characte~
contained
in
the
A
accumulator.
The
system
function
.MDENT
is
used to
~eturn
control to MDOS.
Both of these functions are described
in
Chapter
27.
The
example was assembled with the MDOS equate rile.
It
is
assumed
in
this
example
that
the program
is
origined above location $lFFF since it is using the
resident
MOOS
functions.
The
program can either be loaded with the
LOAD command or invoked from
the
MDQS
command
interpreter
directly.
At
the
time
the
program
is loaded,
the stack
point~r
is
automatically
initialized
to
the
last-loaded
program
location.
In this
example~
this location is used as
the top of the stack.
-""'-,.
Page
25-08

Advertisement

loading

This manual is also suitable for:

Exordisk iii