Texas Instruments TITANIUM TI-89 User Manual
Page 591

Programming
591
Calling a Separate Program
Calling a Separate Program
Calling a Separate Program
Calling a Separate Program
To call a separate program, use the same syntax used to run the program from the
Home screen.
Calling an Internal Subroutine
Calling an Internal Subroutine
Calling an Internal Subroutine
Calling an Internal Subroutine
To define an internal subroutine, use the
Define
command with
Prgm...EndPrgm
.
Because a subroutine must be defined before it can be called, it is a good practice to
define subroutines at the beginning of the main program.
:subtest1()
:Prgm
:For i,1,4,1
: subtest2(i,i
ù
1000)
:EndFor
:EndPrgm
:subtest2(x,y)
:Prgm
: Disp x,y
:EndPrgm