Sharp PC-1500A Instruction Manual page 34

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

Advertisement

All
and more
about Sharp PC-1500
at http:/lwww.PC-1500.info
The output from this mod
ified version
should help you to identify
the
two sections
of
the
di$l>lay.
More than two items may
be d isplayed
on the same
line
through a variation
of
the PRINT
statement
which utilizes the semi colon. Build
and
check
the following program:
Program
Listing:
10 BS
="
BE
"
20 T =
2
30 P RINT
T
;
BS;
" OR NOT"
;
12/3
-
2; BS
Keystrokes:
rnm
m
I
S•urT
j
m
l
=
I
[••u"]
r.:J
!SJ>•t•I
0000
,
...
CE,
ISH1n
l
CJ
l••Tt•!
rn
oo
rn1
=
1
m@fill
rn oo m
~OJ
oocn
CIJ
1
-
·1
o
m
l
,..n
l
[U
l..,n
l
CD
(SH,H(
CJ:J[)
Q[)
(SP•C•J
rnffil
SHon
f
CJ
'
''""
'
CJOJ
aJC71
LIJGOOl
...
n
lCD
ffi(
SH1n
j
(3_j
i<•f<•
l
Running
1his
electronic
composition should
produce the
following output:
I
-
D
EG
RUN
~
B_E
_
O
_
R
NOT
2
BE
Shakespeare
it
ain't,
but it does illustrate
the action of the PRI NT
statement when the
printable
items are separated by semicolons.
In this format, the items
are
adjacently displayed with a
minimum separation between them.
This
capabili
ty is very handy for creating
"natural" looking
output (i.e. output
which
flows
together>.
!!Qrr:
If
the
length of
the informat
ion displayed
exceeds the
sPace
available
on
the
disPlay
(25 characters), the-
items at
the end of the print list will not
be
seen.
Another use
of
the
hard.working semicolon
is
at
the very
end of a
PRINT
sta
tement.
In
th
is
capacity, the
semicolon indicates that
the
output
currently on the display should be
saved and
that
any new outp
ut (from the next
P
RINT uatemcnt) should join
the
old output on
the same
line. This
process is
easier
to
program than to describe, so lot's
experiment with the followi
n9
program (don't fo rget the
NEW
command)
:
Program
listing:
100
PRINT
"
HUMPTY
";
1
10
PRINT
"
DUMPTY
"
Do not
sale
this PDF !!!
32

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents