Sharp MZ-80B Reference Manual page 22

Monitor sb-1510
Hide thumbs Also See for MZ-80B:
Table of Contents

Advertisement

Subroutine name
and address
(in
hexadecimal)
CALL TIMST
$0E06
CALLTIMRD
$0E51
CALL BRKEY
$0562
CALL GETL
$06A4
Function
Sets the built-in clock. Time data must be set in advance as
follows
:
A register
+--
0
:
AM
1: PM
DE register
+--
Time (in seconds) (2 byte data)
Reads the built-in clock. Time data are set as follows:
A register
+--
0: AM
1: PM
DE register
+--
Time (in seconds) (2 byte data)
All register contents other than those of the AF and DE re-
gisters are
protected.
Checks whether or not the (
BREAK
J
key is
pressed.
Z flag
+--
0: not pressed
1: pressed
Obtain one line of data from the keyboard. The start ad-
dress of the area in which the input data are to be stored
and the number of characters to be accepted must be set
as follows:
DE register
+--
Input data storage area start address
KNUMBS (address $06A2)
+--
Number of characters ac-
cepted
The key input sequence is terminated by pressing the
(
CR
]
(or [
ENT])
key.
When the [
CR
]
(or (
ENT
j)
key
is pressed, the end mark ($0D) is stored following the
input data.
Therefore,
the setting indicating the number of
characters to be accepted must include one for the end
mark.
The input data are displayed on the screen and cursor con-
trol, insertion and deletion of characters are
possible.
When the
(BREAK]
key is pressed in the middle of a key
input sequence, the break code ($0B) is set in the start ad-
dress indicated by the DE register and control is returned
to the calling program.
The monitor program uses this subroutine by setting label
BUFER (address $103F) in the DE register and $14 in
address KNUMBS
.
17
Number
of Stacks
3
3
2
8

Advertisement

Table of Contents
loading

Table of Contents