EasyManuals Logo

Sharp MZ-80B Reference Manual

Sharp MZ-80B
94 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #21 background imageLoading...
Page #21 background image
16
Subroutine name
Number
and address Function
(in hexadecimal)
of
Stacks
Note
that
ASCII codes $01 through
$OF
are control codes;
when any
of
these characters are stored in the A register,
the
corresponding display control
is
performed.
For
example, $01 performs
the
same function as
the
CfJ
key.
CALL MSG
Display characters stored in the area whose start address
is
4
$08DB
stored in
the
DE register, starting at the cursor position
and continuing until
$0D
(the
carriage
return
code) is en-
countered. Carriage
return
is
not
performed in this case.
Display control
is
performed
with
ASC codes
$01-$0A,
$0C, $0E
and
$OF.
All register contents are protected.
CALL BELL Sounds middle range
tone
(about
440
Hz) for a short time.
4
$0EBE
CALLMELDY
Plays music according
to
music data.
The
music data area
4
$0EE9
start address must
be
set in
the
DE register in advance.
Music data
is
coded in
the
same manner as described
for
the
MUSIC statement in the BASIC Language Manual.
The
end mark
is
$0D (carriage return)
or$2A(*).
When con-
trol
is
returned
to
the
calling program, the C flag has
the
following meanings:
0 - play has been completed.
1
-play
has been stopped
by
the
[BREAK]
key.
CALL XTEMP
Specifies
the
tempo
at which music
is
played.
Tempo
data
3
$0DF8
($0 1-$07) must be set in
the
A register in advance.
$01: Lowest
tempo
$04
: Medium
tempo
$07: Highest
tempo
CALL SOUT
Sounds a
tone
of
the desired pitch and duration. The
pitch
3
$0ECC
and duration must be set, respectively,
in
the
HL and
BC
registers in advance.
(For
example, when $00A4
is
set in
the
HL register,
the
pitch is middle la).

Other manuals for Sharp MZ-80B

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Sharp MZ-80B and is the answer not in the manual?

Sharp MZ-80B Specifications

General IconGeneral
BrandSharp
ModelMZ-80B
CategoryDesktop
LanguageEnglish

Related product manuals