Recursive Procedure Flowchart - HP 3000 III Series Manual

Table of Contents

Advertisement

Machine Instructions and Stack Operations
Call to
Procedure
Y -FACTORIAL (4)
CAll
PHASE
Main Program
Call
-----,
Recursive
Calls
Load on Stack:
1. Space for result
2. Parameter (N)
3. Stack Marker
Result
N
( /
1
X
1
=
1
lx2=2
2x3=6
6x 4
=
24
EXIT
PHASE
Continue
(Write Answer)
Figure 4-19.
Recursive Procedure Flowchart
4-45

Advertisement

Table of Contents
loading

Table of Contents