Sharp MZ-80A Owner's Manual page 117

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

Advertisement

127
Subroutine
name
(hexadecimal
address)
Function
Registers
preserved
CALL PRTHL
($03
BA)
Displays the
contents
of the HL register
on
the display screen as
a
4-digit
hexadecimal number.
All registers
except
AF
CALL PRTHX
(S03C3)
Displays the
contents
of
the A register
on
the display screen
as a 2-digit
hexadecimal number.
All registers
except
AF
CALL ASC
($03
DA)
Converts the
contents
of the lower 4 bits of A register from hexadecimal
to
ASCII code
and
returns
after
setting the converted data in A register.
All
registers
except
AF
CALL HEX
(S03F9)
Converts the 8 bits of A register from ASCII code
to
hexadecimal and
returns
after setting the converted data in the lower
4
bits of A
register.
When C flag = 0 upon
return
A register
*-
hexadecimal
When
C flag
=
1 upon
return
A register is
not
assured
All
registers
except
AF
CALL HLHEX
(S0410)
Handles
a
consecutive string of 4
characters
in ASCII
code
as
hexadeci¬
mal string data and
returns
after setting
the
data in the
HL
register.
The
call and
return
conditions are as
follows.
DE
*-
starting
address of the ASCII
string (string "3 "l
"A
"5')
CALL HLHEX
DE
Cflag
= 0 HL
*-
hexadecimal number
(e.g.,
HL= 31 A5H)
C flag =1 HL is
not
assured.
All
registers
except
AF
and HL
CALL 2HEX
(S041F)
Handles 2
consecutive
ASCII strings
as
hexadecimal strings and
returns
after setting the data
in A register.
The call and
return
conditions are as
follows.
DE
starting
address of
the
ASCII
string
(e.g., "3" "A")
CALL 2HEX
*
DE
Cflag = 0
A
register
•*-
hexadecimal number (e.g.,
A register
=
3 AH)
C flag = l A register is
not
assured.
All
registers
except
AF
and
DE
CALL ??KEY
($09
B3)
Awaits key input while causing
the
cursor
to
flash. When
a
key
entry
is
made
it
is converted
to
display
code and
set
in A
register,
then
a return
is
made.
All registers
except
AF
CALL 7ADCN
(S0BB9)
Converts
an
ASCII value
to
display code. Call and
return
conditions are
as follows.
A register
ASCII value
CALL
7ADCN
A register
*-
display code
All registers
except
AF
CALL ?DACN
(SOBCE)
Converts
a
display code
to
an
ASCII value.
Call and
return
conditions are
as
follows.
A register
display code
CALL
7DACN
A register «-
ASCII value
AU registers
except
AF
CALL 7DPCT
(SODDC)
Controls
the display on the display
screen. The relationship between
A register
at
the time
of the call and control is
as
follows.
A reg.
Same
function
A reg.
Same function
All
registers
COH
C1H
C2H
C3H
C4H
C5H
C6H
C7H
Scrolling
ffl
EJ
C8H
C9H
CAH
CCH
CDH
CEH
CFH
INST
GRPH
(graphic
normal)
GRPH
(normal
->
graphic)
TTRL
+ @1
(rev. -norm.)
CR
or
SENT
HOME
IdLR1
[DELI
CTRL
+ IDI
(roll UD)
CTRL
+ [El
(roll down)

Advertisement

Table of Contents
loading

Table of Contents