Music Control Statements; Graphic Control Statements - Sharp MZ-80B Basic Manual

Personal computer double precision disc
Hide thumbs Also See for MZ-80B:
Table of Contents

Advertisement

52
REW
7 1 0 REW
FAST
720 FAST
SIZE
? SIZE
1 00 T l $ = " 1 02030"
T l$
3 . 1 . 1 3
Music control sta tements
MUSIC
TEMPO
300 TEMPO 7
3 1 0 MUSIC "DE#FGA"
300 M 1 $ = "C3DG + C"
3 1 0 M2$ = "BGD - G"
3 20 M3$ = "C 8R5 "
330 MUSIC M 1 $ , M2$, M 3 $
3 . 1 . 1 4
Graphic control sta tements
GRAPH
1 0 G RAPH 1 1
20 GRAPH 0 1
3 0 GRAPH 02
40 GRAPH 0 1 2
5 0 GRAPH 00
60 GRAPH C
70 GRAPH F
80 GRAPH I I , C, 0 1
Rewinds the cassette tape.
Fast-forwards the cassette tape.
Displays the amount of unused memory area in bytes.
Sets the built-in clock to 1 0 : 20 : 3 0 AM . Data between the double
quotation marks must be numerals.
The MUSIC statement generates a melody from the speaker accord­
ing to the melody string data enclosed in quotation marks or string
variables at the tempo specified by the TEMPO statement.
The TEMPO statement on line number 300 specifies tempo 7. The
MUSIC statement on line number 3 1 0 generates a melody consist­
ing of D, E, F sharp, G and A. Each note is a quarter note. When
the TEMPO statement is omitted, default tempo is set.
In this example, the melody is divided into 3 parts and substituted
in 3 string variables. The following melody is generated from the
speaker at tempo 4.:
Places graphic area 1 in the input mode . ( That is, data are to be
transferred to graphic area 1 , )
Places graphic area 1 in the output mode .
Places graphic area 2 in the output mode.
Places graphic areas 1 and 2 in the output mode .
Resets the graphic output.
Clears graphic area that is in the input mode .
Fills graphic area that is in the input mode.
Places graphic area 1 in the input mode, then clears it and places it
in the output mode .

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents