
Extended Systems
Monitor
User·
s
Manual
OTHER
USEFUL
MJNlTOR ROt1rINES
The
Monitor
contains
a number
of
routines
that
can
be
called
by
user
programs, and which
will
save
considerable
programming
effort.
In
addition
to
the
keyboard
input
and
video
output
described
elsewhere,
we
have:
AHEX
inputs
four hex
digits
from
the
keyboard and
returns
the
binary
value
in
D,E
registers.
A
space
is
automatically
output
at
the
end.
All
registers,
except
B,
are
used.
Entry
at
AREO
with
a
value
of
1-3
in
C
will
convert
that
many
digits.
Non
hex
values
will
be
ignored.
CRLF
will
output
a
carriage
return
?nd
line
feed
to
the
screen.
The A
register
is
used.
SPCE
will
output
a
space
to
the
screen.
The
A
register
is
used.
RNDM
returns
a
new
random number
in
B,C
based on
the
seed
in
B,C
as
it
is
called.
B,C
Dfould
not
contain
0000.
The pseudorandom number
sequence
generated
is
2
-1
entries
long and
is
based on a
software
simulation
of
a
shift
register
with
maximum
length
feedback.
PSW
is
used.
PTAD
first
outputs
a
CRLF,
then
outputs
the
binary
value
in
H,L
as
four
hex
digits
followed by a
space.
PSW
used.
PT2
outputs
(A)
as
two
hex
digits.
TAHEX
calls
AHEX
twice,
inputting
two
address
fields
of
four
hex
digits.
The
first
value
is
returned
in
H,L;
the
second
in
D,E.
14
Rev.
4.0-A
10/15/79
Kommentare zu diesen Handbüchern