Sharp PC-1500A Instruction Manual page 93

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

Advertisement

All
and
more
about
Sharp PC-1500
at
http://www.PC-1500.info
F.5.
GPRINT
The GPRINT
statemont
pr-ovidcs d
irect. programmable
c<>ntrol
over
the
dots of the d
isplay
window.
Since
the
GPRINT statement sets
and
resets dots
within
any
7-0ot column. it is normally
used
in
conjunction with
the GCUASOR
instruction
.
The GCURSOA statement
selects the
appropriate
column for
modi fication
and
the
GPR INT statement man
ipulates
the
dots
\vithin
that column. The
GPRINT statement is
also capable
of
printing several
contiguous
columns
of
information
in a
single
statement.
In order
to
understand
the format o
f
the GPRINT statement.
it
is necessary
to understand
ho ..
v the
dots
within
a
column
are controlled. The pattern of
energizr.d
dots \.Vithin a
column
may be
specified
ei ther as a decimal
number or
as a
hexadacimal
character string,
If
the
deci
mal
system is used.
then each
rovr-.•
may be visualized as being
numbe
red. from the top down
,
by a
po
..
ver
of
t
..
vo.
This is illustrated below:
2
- -
-
-
-
-
-
-
4
- -
- -
- -
- -
8
-
-
-
- -
-
-
-
16
-
-
- - -
-
-
-
32
-
-
- - - - - -
64
---
-----
With
7 dots to a
column. each
of
which may
either
be
on
or off.
there
arc
128
possi blc
dot
patterns.
Thus.
to
specify a
particular
pattern one uses
the format:
GPRINT pattern-expression
;
J>attern ·cxprcssion2
.
.
(etc)
.
.
where:
pattern-expression
evaluates to
a
number
in the range
0
to
127
and specifics
the
pattern of
energized
dots.
Several
pattern
expressions
may optionally
be
specified and must
be
separated
by
either
a
sem icolon
or
a
comn1a.
If
a comma is
used,
a
blank
column
will
be
left between every printed
column.
Let us
illustrate the utility
of
the
GPRINT
instruction by creating
a
new character: an Up
Arrov\f.
First,
vie
design
our character on a grid representing
the
ro\VS
and
columns:
Caution
1
-
-
- - * - - -
-
2
-
-*-*-*
-
-
4
·
-
- -
·
-
-
-
·
8
____
.,
___ _
16
- - -
-
..
-
-
-
-
32
- - - -
"'
- - - -
64 _
_
_
_
,,. __
_
_
2
3
4
5
Observe the
following
w
hen correcting
the
PRINT command
in
a program for a
GPR
INT
command:
Example:
r
Rewite
"
PR INT"
entirely
into "GPRINT"
.
20
PRINT
AS
L
nserting
only
"G" does
not
allow
the
com
puter
to
judge it
as
"GPRINT".
(This
is regarded as "G" and
"PRINT".)
l
The
same can
apply
when the CURSOR command
is
corrected
to a GCURSOR
command,
o
: J
to
the printer commands.
w..~~~~~~~~~~~~~·
v
"'"'""'A"'"'
Do not
sale
this PDF
!!!
91

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents