Sharp PC-1500A Instruction Manual page 94

Hide thumbs Also See for PC-1500A:
Table of Contents

Advertisement

All
and
more
about Sharp PC-1500
at
http://www.PC-1500.info
Because
our character is
5
columns
wide
\"le
·
1
.-.iill need 5
separate
numbers
i:n the
pattern·
expression list
of
the GPRIN
T
statement.
The
numbers
representing
the columns
1
and
5
must
each specify
a single dot
in the
row labeled
4.
Sim
ilarly,
the numbers
representing
columns 2
and
4
must each specify a
single dot
in row 2
.
The
final statement is
:
GPRINT
4;2;
127;
2;4
The specification of
t
he
t hird
column
(127)
is the only
number
whose
derivation may
not
be
immediately
o
bvious.
The
number
127 is
the
sum
of a dot
in
the
first row
(1
), a
dot
in
t
he
second
row
(2), a dot in 1hle
third
row (41. and so
on.
Thus.
127
is 1
+
2
+
4
+
8
+
16
+
32 +
63
and
specifies
all
7
dots
i
n
the
column
.
Any pattern n1ay be
created by specifying a ro
.. v
or a sum of
several
rows.
If
the
hexadecimal addressing
scheme
is
used
,
the 7 rows of the
d
isplay
are
concep
tually
d ivided
into
a
lov1cr
group of
3
rows
and
an
upper
group
of
4
ro
..
vs.
Each
group
is
numbered,
from
its
top
row.
by
powers
of
two
as illustrated
below:
1
2
4
8
1
2
4
Thus,
it
is
possible to
represent all
the
patte•ns of a group by a single hexadecimal
digit.
Because the lower
group
has
only
3 rows, the
range o
f
allowable d igits
fo
r
t
his group
will
be
from
0
10
7,
Of
the two
hexadecimal
digits required
to specify
an entire column,
t
he
first d
igit
will
represent
the
lower
group
and
the
second
digit
will
represent
the upper
group,
The form of the
hexadecimal
GPR
INT
is:
GPRINT "hexadccimal·string"
\vhcrc
:
hcxadecimal·string
is
a
string
consisting of hex
d
igits.
each
pair
specify ing
the
dot
pattern
of
a
single
column.
Using this
format
to
create
our
Up A'row character from
the
previous
exam
ple
would
give us
the
statement:
GPR
INT
"04027F0204"
92
Do not sale this PDF
!!!

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents