Calling Other Programs - TI -82 Manual Book

Graphing calculator
Table of Contents

Advertisement

Calling Other Programs

On the TI.82, any program can be called from another program as a subroutine.
Enter the name of the program to use as a subroutine on a line by itself.
Calling a Program from Another Program
To call one program from another, begin on a blank line in the program
editor and do one of the following:
Press  | to display the
¦
the program.
location.
¦
Select
program name (page 13.11).
prgm
name
When this instruction is encountered during execution, the next command
that the program executes is the first command in the second program. It
returns to the subsequent command in the first program when it encounters
either a
Return
PROGRAM:VOLCYL
:Prompt D
:Prompt H
:prgmAREACIRC
...
!
:A
H
:Disp V
Notes about Calling Programs
Variables are global.
label used with
label in one program is not "known" by another program. You cannot use
Goto
to branch to a label in another program.
Return
exits a subroutine and returns to the calling program, even if
encountered within nested loops.
13-18 Programming
and the name are copied to the current cursor
prgm
from the
prgm
PRGM CTL
instruction or the implied
V
Goto
and
Lbl
menu and select the name of
PRGM EXEC
menu and then type the letters of the
Return
PROGRAM:AREACIRC
!
:Dà2
R
...
2
!
:
R
A
:Return
is local to the program in which it is located.
at the end.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents