Download HP 35s scientific calculator

Transcript
In RPN mode,











2
4
6
 
 
 
 
 
 
 
 
 

 
1
3
5
  
  
A2.
A2 + B2.
A2 + B2 + C2
A2 + B2 + C2+ D2
A 2 + B 2 + C 2 + D2


 
  
246 
Starts subroutine here.
Enters A.
Enters B.
Enters C.
Enters D.
Recalls the data.
Returns to main routine.
 135
Nested subroutine
 
  
 
Adds x2.
 
Returns to subroutine S.
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