Branching (Gto) - HP 35s User Manual

Scientific calculator
Hide thumbs Also See for 35s:
Table of Contents

Advertisement

In RPN mode,
  
  
  
  
  
  
  
  
  
 
  
2
  
4
  
6

 
  
 
 
 
246 
 

Branching (GTO)

As we have seen with subroutines, it is often desirable to transfer execution to a part
of the program other than the next line. This is called branching.
Unconditional branching uses the GTO (go to) instruction to branch to a specific
program line (label and line number).
14-4
Programming Techniques
1
3
5
 135
Starts subroutine here.
Enters A.
Enters B.
Enters C.
Enters D.
Recalls the data.
2
A
.
2
2
A
+ B
.
2
2
2
A
+ B
+ C
2
2
2
A
+ B
+ C
+ D
2
2
2
A
B
C
D
Returns to main routine.
Nested subroutine
2
Adds x
.
Returns to subroutine S.
2
2

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2215aa - 35s scientific calculator

Table of Contents