Sharp MZ-700 Series Owner's Manual page 155

Personal computer
Hide thumbs Also See for MZ-700 Series:
Table of Contents

Advertisement

Name and entry point (hex.)
Function
Register
saved
CALL MSTP
(0047)
Stops the sound generated with the CALL MSTA subroutine.
Other
than A F
CALL TIMST
(0033)
Sets and starts the built-in clock. Registers must be set as
follows before this routine is called.
ACC <- 0 (AM), ACC «- 1 (PM)
DE
4-digit hexadecimal number representing the time in
seconds.
Other
than A F
CALL TIMRD
(003B)
Reads the built-in clock and returns the time as follows.
ACC
0 (AM), ACC «- 1 (PM)
DE
4-digit hexadecimal number representing the time in
seconds.
Other
than A F
and DE
CALL BRKEY
(001E)
Checks whether the I SHIFT | and [ BREAK [ keys are both
being pressed. The Z flag is set when they are being pressed
simultaneoulsy; otherwise, it is reset.
Other
than A F
CALL GETL
(0003)
Reads one line of data from the keyboard and stores it in the
memory area starting at the address indicated in the DE
register. This routine stops reading data when the RETURN
key is pressed, then appends a carriage return code (0D) to
the end of the data read.
A maximum of 80 characters (including the carriage return
code) can be entered in one line.
Characters keyed in are echoed back to the display, and cursor
control codes can be included in the line.
When the 1 SHIFT ~ ] and 1 BREAK] keys are pressed
simultaneously, BREAK code is stored in the address indicated
in the DE register and a carriage return code is stored in the
subsequent address.
All
registers
CALL GETKY
(001B)
Special key read
with GETKY
Reads a character code (ASCII) from the keyboard.
Other
If no key is pressed, control is returned to the calling program
than A F
with 00 set in ACC.
No provision is made to avoid data read errors due to key
chatter, and characters entered are not echoed back to
the display.
When any of the special keys (such as | DEL [ or |CR[ ) are pressed, this
subroutine returns a code to ACC which is different from the correspond-
ing ASCII code as shown below. Here, display codes are used to address
characters stored in the cahracter generator, and are different from the
ASCII codes.
Special key
DEL
INST
ALPHA
BREAK
CR
SI
D
B
I HOME 1
I CLR I
Code set in ACC
60
61
62
64
66
11
12
13
14
15
16
Display code
C7
C8
C9
CB
CD
CI
C2
C3
C4
C5
C6

Advertisement

Table of Contents
loading

Table of Contents