Program Code And Go To Instructions - Singer Friden 1155 Operator's Primer

Advanced programmable calculator
Hide thumbs Also See for Friden 1155:
Table of Contents

Advertisement

9/72
12
PROGRAM CODE AND GO TO INSTRUCTIONS
PROBLEM:
Convert a temperature measurement from degrees Centigrade to
degrees Fahrenheit.
F
=~
+
32
The following program illustrates the use of two new instructions, PROGRAM
CODE and GO TO.
:10
program cOde/'
GO TO instrUCtion/'
++576
SPACE
STOP
PRINT
9
X
5
3
2
+
PRINT
GO TO :10
Key in C
Compute F.
Print F.
Go to beginning
A
program code is a two digit number that marks a particular place in a program.
There are 100 possible program codes, 00 through 99. In the above program,
the program code '10' was a purely arbitrary choice.
The GO TO :LO instruction instructs the 1155 to find program code 10 and then
execute instructions, beginning with the instruction following the program code.
PROG
To enter a program code, use the
CODE
key
( ) ( )
For example, the program code '10' is entered in the following manner.
PROG
CODE
( )
( )
Or, in abbreviated form:
PROG CODE :LO
12-1

Advertisement

Table of Contents
loading

Table of Contents