EasyManua.ls Logo

Sharp PC-1500 - Page 93

Sharp PC-1500
169 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
A
ll
and more about Sharp
PC
-1
500
at
http://www.PC-1500.info
F.5.
GPR INT
The
GPRINir
statement
provides dir
ec
t,
programmab
le
contr
ol over
the
dots
of t
he
display
w indo\v.
Since
t
he
GP
RINT statement se
ts
and resets
do
ts
i.•i1ithin
any
7·dot
co
lu
mn.
it
is
no
r
ma
ll
y
used
in
conjunctio
n
with
the
GCURSOR
instruction.
T
he
GCURSOR
statemen
t selects 1he
approp
ri
ate column for modification and the G
PRINT
state
ment
manipulates the do
ts
o.•1
ithin
that colurnn. T
he
GPRINT
st
atement
is
also
cap
able
of
pr'inting several
con
tig
uo
us
co
lumns
of
in
for
ma
tion in a si
ng
le
st;atcmcn
t.
In order
to
understand
the
format of the
()PRINT
statement.
it is necessary
to
understand
hO\"J the dots w ithin a column arc con t
ro11ed
. The pattern
of
ener
gi
zed
do
1s within a column
may
be
spec
i
fied
t!ither as a decimal nunlber o,. as a hexadecin,al charact
er
string.
If
the decimal
sys
t
em
is
u
sed
, then
P.ach
rO\V may be visualiied
as
bei
ng
numbered,
fr
om t he top
dow
n,
by
a
Po1o\le
r
of
t\V
t>
. T
his
is
illustrated
belo'<v;
1
--------
2 ·-
------
-
4
--------
8 - - -
---
--
16 - - - - - - - -
32--
------
64----
-
---
With 7
dots
to a
column,
each
of
which
may
either
be
on
or off, t
he
1e
are
128
possible
dot
patterns. Thus,
to
specify a particular pattern one uses the format :
G
PRINT
pattern-expressi
on
:
pa
uern
·expressio
n2
. .
{e
tc
)
..
where:
patt
ern
-e
xpr
ession
ev
a
luates
to a num
ber
in 1he iange 0 10
12
7 and specifics t
he
pat
t
ern
of
e
nergized
(lo
ts.
Several
pattern expr
ess
ions
m
ay
option
ally
be
speci
fied
and
must
be separated
by
either a semicolon or a co
mm
a.
If
a comma is used, a blank column
\\lill
be
left bet\\leen every
print
ed column,
L
et
us
illustrate the
ut
i
lity
of
the
GPA
I
NT
instruction
by
creating a new chllractcr: an Up
Arro\v.
First. we
des
i
gn
our character
on
a g
ri
d representing the rows and columns:
1
---
- *
--
--
2
--
* - * -
*--
4 *
---
*-
--·
8 - - -
-·----
16 - - - - * - - - -
32
- - - - * - - - -
64
----
·
----
2 3 4 5
r
caution
Observe
the
following
when
correcting t
he
PRI
NT
comm
and in a progr
am
tor
a
GPRINT
command:
Examp
le: r Re
wite
"PR
I
NT
" enuirely i
nt
o
"GPRIN
T"
.
20
PiilNT
AS
L1
nserting
only
"G"
does
no
t allow
the
computer
to
judge it as
"GPRINT".
{Th is is regar
ded
as
"G"
and " PR I N
T".
)
The same
can
app
ly
when
the
CURSOR
co
mman
d is
corrected
to
a GCURSOR
command,
or
to
th
e
pr
i
nte
r commands.
91
Do
not sale this PDF
!!!

Table of Contents

Other manuals for Sharp PC-1500

Related product manuals