Operation Manual

Chapter 16: Programming 292
Note: You can access Get(, Send(, and GetCalc( from the CATALOG to execute them from the home
screen (Chapter 15).
Calling Other Programs as Subroutines
Calling a Program from Another Program
On the TI-84 Plus C, any stored 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.
You can enter a program name on a command line in either of two ways.
Press  | to display the
PRGM EXEC menu and select the name of the program prgmname is
pasted to the current cursor location on a command line.
Select prgm from the PRGM CTL menu, and then enter the program name.
prgmname
When prgmname 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
Return or the implied Return at the end of the second program.
Subroutine ( '
Notes about Calling Programs
Variables are global.
label used with Goto and Lbl is local to the program where it is located. label in one program is not
recognized 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 it is encountered within nested
loops.
Running an Assembly Language Program
You can run programs written for the TI-84 Plus C in assembly language. Typically, assembly language
programs run much faster and provide greater control than the keystroke programs that you write with
the built-in program editor.
Note: Because an assembly language program has greater control over the calculator, if your assembly
language program has error(s), it may cause your calculator to reset and lose all data, programs, and
applications stored in memory.
When you download an assembly language program, it is stored among the other programs as a
PRGM
menu item. You can:
Transmit it using the TI-84 Plus C communication link (Chapter 19).
Delete it using the Memory Management/ Delete screen (Chapter 18).
To run an assembly Program, the syntax is:
Asm(assemblyprgmname)
Program Output