Sharp MZ-80A Owner's Manual page 116

Hide thumbs Also See for MZ-80A:
Table of Contents

Advertisement

126
Subroutine name
(hexadecimal address)
Function
Registers
preserved
CALL MSTP
($0047)
Discontinues a
tone
being sounded.
All
registers
except
AF
CALL TIMST
($0033)
Sets the built-in clock.
(The
clock
is
activated by this call.) The call
conditions are:
A register
«-
0(AM), A
register
+-
1
(PM)
DE
register
*-
the time in seconds (2 bytes)
All
registers
except
AF
CALL TIMRD
($003 B)
Reads the
value of the built-in clock. The conditions upon
return
are:
A register
*-
0 (AM),
A register
«-
1 (PM)
DE
register
«-
the
time
in seconds (2 bytes)
All
registers
except
AF
and DE
CALL BRKEY
(S001E)
Checks whether SHIFT
+
BREAK
were pressed.
Z flag
is
set
if they
were pressed, and Z flag is
reset
if they were
not.
All
registers
except
AF
CALL GETL
($0003)
Inputs
one line entered from the keyboard. The
starting
address where
the data input is
to
be stored
must
be
specified in advance in the DE
register.
CR
functions
as the end mark. 80
is the maximum
number of
characters which can be
input
(including the end mark 0DH).
Key input
is
displayed on the screen and cursor control is also accepted.
The BREAK code
(
1
BH) followed by
a carriage
return
code (ODH)
is
set
at
the beginning of the address specified in the
DE
register
when SHIFT
+
BREAK
are pressed.
All
registers
CALL GETKY
($001 B)
Takes
one
character only
into A
register
from the
keyboard in
ASCII
code.
A
return
is
made after 00
is
set
in
A register
if
no key is pressed
when the subroutine
is
executed.
However, key input is not displayed
on
the screen.
Codes which are taken
into
A register
when these special keys are pressed
All
registers
except
AF
are
shown below.
Special key
[DEL1
JNST]
,
-
-
graphic
mode
EM
Inonÿimo*
]
BREAK1
CR
oi
ENT1
1
CTRL
I
+
[XI ~
Z
I
CTRL]
+
T1
I
CTRL |
+
m
| CTRL
+
HI
1
CTRL
|
+
PH
[CTRL]
+
E]
Code
taken
into A register
60 H
61 H
62 H
63 H
64
H
66 H
01 H
~
1
AH
1 BH
1
CH
1
DH
1
EH
1
FH

Advertisement

Table of Contents
loading

Table of Contents