Sharp MZ-700 Series Owner's Manual page 161

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

Advertisement

The character patterns on the former page are contained in the 2K bytes which make up the first
half of CG-ROM. Character patterns for the second half of CG-ROM are shown on the latter page.
However, character patterns in the second 2K bytes of the CG-ROM are not supported by BASIC, and
cannot be entered directly from the keyboard. Although they can be displayed using the POKE
statement as shown in the example below, they cannot be output to any printer (either the built-in
printer or an external printer).
< Examples >
(1) The following program example displays character patterns from the second half of CG-ROM
on the CRT screen.
1 0
C O L O R ,
, 7 , 0
20
P R I N T " B "
;
30
F O R
J = 5 5 2 9 6
T O
5 6 2 9 6
55296 = $D800
40
P O K E
J,
2 40
> Specifies the second 2K-byte
50
N E X T
J
'
half of CG-ROM. 240 = $F0
60
A = 5 3 2 4 8 :
I = 6 : H = 0
> 53248 = $D000
70
P O K E
A ,
I
80
A = A + 2
90
1 = 1 + 1 : I F
1 = 2 5 6
T H E N
G O T O
1 2 0
100
H = H + 1 : I F
H = 20
T H E N
A = A+40:
H = 0
110
GOTO
70
1 20
GOTO
1 20
(2) The example below illustrates using machine language to display character patterns from the
second half of CG-ROM on the CRT screen.
L D
H L , D 0 0 0 H
D I S P
: X O R
A
C A L L
D I S P
L D
B ,
0 0 H
L D
H L , D 2 0 8 H
D I S P 2 : L D
C H L ) , A
C A L L
D I S P
I N O
H L
L D
A , F 1 H
I N C
A
L D
H L , D A 0 8 H
D E C
B
L D
D E , D A 0 9 H
J P
N Z . D I S P 2
L D
B C , 0 0 F F H
R E T
L D
C H L ) , A
L D I R
E N D
1 5 5 - 1

Advertisement

Table of Contents
loading

Table of Contents