Sharp PC-1500A Instruction Manual page 35

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

Advertisement

All
and
more
about Sharp PC-1500
at
http://www.PC-1500.info
Keystrokes:
mrn
oo~m~oom1
~,,T
1
~rnrnoomrurn
I
SHIFT
I
c:J
(
EKTEAj
Now
run
it.
As
usual, you must
press
l••Tt•
I
after
t
he first
PRINT statemen
t has
displayc<I
" HUMPTY
"
.
Because of
the
semicolon
"H UMPTY "
is
retained
and
"DUMPTY"
shares
'the
display
w
ith
it.
Contrast this
'-'tith
the
execution
o
f
the
following
progr::Jm
which
does
not utilize
the
semicolon
and the d ifferences
will
become
c
lear:
Program
List
i1
ng:
1C
PR
INT '
·
'
HUMPTY "
20
PRINT
"DUMPTY"
Keystrokes:
moo
mm
m oorn1
••1FTI
c:J
!ID
mCIDmCD
rr1
lsP1.c1:I
I
SH
IFT
I
c:::J
I
ENT CRI
rn oo
moo
m
oom
1
....
n
1
c:i
rn
01J
oo
m
m
rn
The
next
sample program illustrates
that
the
semicolon
may join
as
many
lines
of output
as
will
fi
t
o
n the
display.
Printin·g too much info
rmation on the
d
isplay
is
a
m istake
which
SHARP
w
ill
not
signal.
It
is up
to you
.
as
a
programmer. to
insure
that
this
will
not
happen.
Try the
following
educational
program:
Program
Listing:
20
PRINT "
DO
.
40
PRINT "RE "
·
.
60
PRINT
"Ml
...
.
80
PR
INT
"FA
"
.
.
100
PRINT
"SOL ";
120
PRI NT
" LA
"
;
140
PRINT "Tl
";
160
PRINT "DO
"
33
Do not sale this PDF
!!!

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents