EasyManuals Logo

Radio Shack Telephone Interface II Manual

Radio Shack Telephone Interface II
126 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #67 background imageLoading...
Page #67 background image
<
Line
60
adds
the
'Y'
to
"A".
Now
we
are in
even
number order. Why don't we multiply
by
two?
See
second
portion
of line 60
and
line
70.
Memory
"F" (in which the
number of
division
is
stored)
is
decremented
by one.
Line 70
compared
result
with
zero.
If
not zero,
we've
not yet reached
the
last
'X'
and 'Y' and
returns
to line
40
where
'Y'
is
added
again I.E.
multiplied
by two.
If
F=0, then
we
reached the last,
and
according
to
the
program the last
one should not
be
multiplied
by
two,
so
program goes to next
line
and
does
the last
calculation
(multiply by 3/H).
Operation
Display
Note
Set
to
the
DEF
mode
(SHFTJtjT]
xo-
1°"**]
X2P
=
Uo>
1
|ekter|
P
=
<*2p)
20
I?*â„¢)
A
ANS.
1.083333333 (P)
When
the
(w^
is
pressed at this
step,
the
Pocket
Computer
starts
the
calculation
while
displaying the
"RUN"
symbol
and
about
40 seconds
later,
an
answer will be displayed
with 3 beep
sounds.
Debugging the
program
will help you
understand its
execution process.
Try
it.
FOR statement,
NEXT
statement
When
you
need to
execute
identical
programs
repeatedly,
or
when you need
to
solve a calcula-
tion equation
repeatedly by
replacing
only the
values
of variables
contained in it,
the FOR-NEXT
statement
will
provide an
efficient
method.
(Of
course you
can
combine
it
with the decision
function
capability
of GOTO
and
IF
statements.)
General form
(1)
FOR
[Numerical
variable]
=
<
Expression
1
>
TO
<
Expression
2
>
NEXT
[Numerical
variable]
Example:
FOR
AM TO
26
NEXT A
The
FOR
and
NEXT statements
(plus
numerical
variables)
are used as a
pair,
and
instructions
between these
statements
are
repeatedly
executed
the specified
number
of times.
In the first
execution,
the
value
of
(expression
1
>
is
stored as
the initial
value in
a
specified
numerical variable.
When
the Computer
comes
to
the
NEXT
statement,
it adds
an
increment
of
1
to
the numerical
variable
and
executes the
instructions
between
the FOR and
NEXT
statements
and loops back to
the FOR
over
and
over
until the
numerical
variable is
equal to (or
more
than) the value
of
<
expression
2>.
General form
(2)
FOR
[Numerical
variable]
<
Expression
3
>
NEXT
[Numerical
variable]
<
Expression
1
>
TO
<
Expression 2
>
STEP
Example:
FOR
AM TO
26
STEP
2
NEXT
A
64

Other manuals for Radio Shack Telephone Interface II

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Radio Shack Telephone Interface II and is the answer not in the manual?

Radio Shack Telephone Interface II Specifications

General IconGeneral
BrandRadio Shack
ModelTelephone Interface II
CategoryDesktop
LanguageEnglish

Related product manuals