Sharp PC-1500 Instruction Manual page 55

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

Advertisement

A
ll
and more about Sharp
PC-1500
at
http://www.PC-
1500.info
ce_iUJ
m@J
rnrnm
,,.,..,
rn
rnmm
m
mm
l•NTE•)
m
rE1~
nriC10m
co
m
1
••1FT1
omm
m
1••"T
'
o
w
ITO
OD
CD
CQJ
®rel lfu:®
rnrn nnrn1
=1cnrD
CIDt<
••<•1
rn
moo
mm
ITO
mm,
....
,
1
C'.J
m
rn
corn m
!SPACE)
1
=
)
lsrAc£
!
!SHIFT
I
c:J
I
s111rTI
CO
CD
l••T
..
f
rnrnoommmoorn
1
-·1
C'.JmmwmmmcE1
fS>AClf
f
=
f
(SP•C•f
,
...
,,,
I
c:J,
......
I
c:J
[X)
IE
N
TERI
The
FOR
. . .
NEXT loop
need
not
always
increment
the counter·variable
by
1 nor
always
init ialize
it to
1.
Using the
STEP
clause,
the
pr
ogrammer
may
specify
the
size of
the
increment
(or
decrement).
Our
next example program
demonstrates
t
his
and brings back
memories
of high
school cheerlead
ing:
Program
Listing:
10
WA IT 30
20 FOR
HS
=
2
TO 8 STEP
2
30
PRINT
HS; "
I
"
;
40
NEXT HS
50
WA IT
60
: CLS
:
CURSOR 0
60
PRINT "WHO
DO
WE
APPRECIATE?
"
70
PRINT "SHAR
P PC·1500!"
80
END
Keystrokes:
moo
oo
rn
com
rn
rn
l•NTE•I
rn
rn
ru
rn
oo
DD II!l
1
=
1
rn
D:J
rn rn m
com
rn
ffil
<NTCRf
rnrnm oo
m
oo
cornm1
' "
""' m
,
....
,,
c:J
I
SH1
rT
I
CO
lsrACEI I
SH IFT!
c:J
I
SH•FT
I
c:.J
(ENTER!
m rn
OD
mm
CD
OD
m
l••TC•t
rn rn
oo
a::i
corn
rn
m
1
....
,,,
o
ill
mm
1
SH•FT!
o
ill
o:o
mm rn
OD
rn
''"' "
"'
rn rn m
oorn rn
rn 1 •••"'
CJ
oo
oorn l•••C•t
oo
oo
,
... c.1
CID
CD
l•••CEI
m
0 0 OD
oo
m
m
m
CD
OCl
l•••n
l
CD'
'"""
CJ
(EHTERf
53
Do not
sale
this PDF
!!!

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents