All and more about Sharp P
C-
1500
at
http
:/l
www.PC-1500.info
The
outp
ut
from th
is
modified version should help you to identify the
tw
o sections
of
the
display.
Mor
o than
two
items may be displayed
on
lhe
same line through a variation
of
the PRINT
statement
wh
i
ch
utilizes the semi colon. Build
and
check the followi
ng
program:
Program Listing:
10
BS = .•
BE
"
20
T = 2
30
PRINT T; BS;
"O
R N
OT";
1
2/3
- 2; BS
Keystrokes:
rn
oo;
SH•FTI
~
.J
1 = 1 lli:!ffi c::i ,
..
.
co
1
oom
1
s••
co
1
i SHl
f"
T I
C::J
I £WT£• I
OJ
C9.J
C!JI
= I
UJ
(
tNTt•
J
rn
uo
m m co
ao
r..
I.J
m 1
...
,,, m
oo
'''""1
CIJ
l•..,,1 CD
, ..... , c:JOD m 1
..
•c
<J
mm'
""'"
'
c:::
!
SHn
l
c:J
~Q
[2]
1-z:l
n::JG
aJ
I
SH•n
l
[IJ
[][]
I •••nl
(I)
l
<•TC•I
Runn
ing
thi
s electro
ni
c composit
ion
sh
ou
ld pr
ocJ
u
ce
t
he
fo
ll
owing output:
DEG AUN
BE
OR
NOT
2
BE
Shakespeare
it
ain't, but it does illustrate the
ac
tion
of
the PRINT
stat
ement when
the
printable
items are separated
by
semicolons. ;., this format, the items are adjacently d isplayed with a
minimum separat
ion
between them. This capabiliry
is
very handy
fo
r creating
"natural"
looking
output
li.e.
output
which flows together).
NOTE:
If
the length
of
the information display
ed
exceeds the space ava
il
ab
le
on the display
{25 characters), the items
at
the end of the print li
st
wi
ll
not
be seen.
An
other u
se
of the ha
rd
·worki
ng
semicolon is at the very
<l
nd
of
a
PR
INT s
tat
ement. In this
capacity,
the semicolon indi
cat
es that the
outp
u t curre
nt
ly on the displ
ay
should be sa
ved
and
that
any new o
ut
p
ut
{from the ne
xt
PRINT statement) should join t
he
old out
pu
t on the
S<>
mc
li
ne. This process is easier to prog
ra
m than to describe, so let's experiment wi
th
the fo
ll
o
wi
ng
p
rog
ram (
do
n
't
forget the NEW command):
Program
lis
ting:
100
PRI
NT
"HUMPTY " ;
110
PRINT "DUMPTY"
Do not sale this PDF !!!
32