Sharp PC-1403 Operation Manual page 220

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

Advertisement

214
(4) Value of
a
loop variable
after
completion
of a
FOR-NEXT
loop:
The value
of a loop variable obtained after the execution of
a
FOR-NEXT
loop
completed on the PC-1403 is
different
from
that
obtained
on the
PC-1245
Series.
If
the value of a
loop variable is used
in
a conditional
expression
i
n
a
PC-1245
Series
program, increment
it
by
one when
it
is
used
on
the
PC-1403.
(3)
Data 1/0 statement
for tape files:
On the PC-1245
Series,
the
execution
of,
for
instance,
the PRINT# C
statement
saves the
contents of the variable C
and
all
the subsequent vari
a bles to a tape
file.
On the
PC-1403,
however,
the execution
of
the same statement
saves the
contents of the variable
Conly.
To
save
the contents
of
a
specific
variable
and all
the subsequent
variables,
use
the specifications
on
the
right
side
of
the
following
examples:
e.g.,
PRINT#A-7PRINT#A*
INPUT#~INPUT#C*
DIM
A(30)-7A(30)=0
e.g., A=SIN B~A=SIN
(B*C)
(2)
Definition
of
subscripted
variables
(such
as
A(
))
by
using
the
DIM statement:
On
the
PC-1245
Series, if,
for
example,
DIM
A(30)
is
executed,
memory
locations for A(27) through
A(30)
are
set
aside
as
an extension of
a
fixed variable
definition
area.
On the
PC-1403,
however,
the execution
of
DI
M A(30)
reserves
a
separate memory area
for
array
variables
A(0)
through
A(30)
for the
array
named
A.
When
defining subscripted variables (such as A(
)) as
an extension
of
fixed
variables, use
the
specification
on
the
right side
of the following
example:
tMfif
:JJl;!ij'''i4·•GDA+itl'"i*i1it¥t@atm11.i .1:at+1,w
When using on
the PC-1403 a
program
developed
for
the
PC-1245
Series,
the
following
modificiations
are
necessary:
(1)
Multiplication
without
using
the
operator
"*".
On
the PC-1245
Series,
the
operator (*) for multiplication
may
be
omitted,
such
as
AB
for
A*B
or
CD for
C*D. On
the
PC-1403,
however,
the multiplication
operator (*)
cannot be
omitted
since
the
computer treats two
consecutive
characters,
such as
AB
or CD,
as simple variables.
Use
the
specification
on
the right side
of the following
example:
APPENDIXG
Using Programs Writt
en on Other
PC Models

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents