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
s
tatement
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.
10
CO LOR
,,
7,
0
20
PR
I NT "
[!]
" ;
30
FOR
0=55
29
6
40
P
OK
E
0,
2 40
50
NE XT
0
TO
5629
6
______,
55296
= $D800
_________
_, Specifies the second 2K-byte
60
A=
532
4
8:
I= O
:H=
O
half
of
CG-
ROM.
240 = $FO
_____
_,
53248
=
$DOOO
70
PO
KE
A,
I
80
A= A+ 2
90
1=1+1:
IF
1=
256
THEN
GO
TO 1
20
1
00
H=H+1
:
IF
H=2
0
THEN
A= A
+4
0 :
H=
0
1
10
GO
TO
70
1
20
GO
TO 1
20
(2) The e
xa
mple below illustrates using machine language
to
display character patterns from the
second half
of
CG-ROM on the CRT screen.
LD HL, D
000
H
CA
LL
DI S P
LD HL , D
208
H
CA
LL
D IS P
LD
A,
F1H
LD HL , D
A0
8H
LD DE , D
A09
H
LD
B
C,00
FFH
LD CHL), A
LDI
R
E
ND
D IS P
:XO
R A
LD 8
,00
H
D
I S P
2:
LD CHL), A
I NC HL
IN
CA
DE C B
0P
NZ , DI S P 2
RET
155-1
-------------------
-
-----
-
-------
-