Advertisement
Online Test Banks
Score higher
See Online Test Banks
eLearning
Learning anything is easy
Browse Online Courses
Mobile Apps
Learning on the go
Explore Mobile Apps
Dummies Store
Shop for books and more
Start Shopping

Execute an External Program as a Subroutine on the TI-84

It’s quite easy to have a program call and execute another program saved on your TI-84 Plus calculator, and then return to the original program to complete its execution of that program.

One command accomplishes the processes of calling, executing, and returning: the prgm command (accessed by pressing [PRGM][ALPHA][x–1]). The name of the program being called is placed directly after the command. Notice that there is no space between the command prgm and the name of the program.

After the externally called program is executed, the calling program continues to execute the commands that follow the prgm command provided that the externally called program does not encounter the Stop command. This command terminates both the called and calling programs.

If you want the externally called program to return control to the calling program before it completes its execution, you do so by putting the Return command in the appropriate place in the externally called program. As an example, consider the program GOTORTRN. If your program calls GOTORTRN, then when the program user enters a number greater than or equal to 1000, the GOTORTRN program is terminated and the calling program continues to execute.

image0.jpg

If a program containing a Stop command is called by another program, that command may terminate the execution of both programs. If the Stop commands in the called program are replaced with the Return command, then after the called program is executed, program control returns to the calling program.

  • Add a Comment
  • Print
  • Share
blog comments powered by Disqus
Advertisement
Advertisement

Inside Dummies.com

Dummies.com Sweepstakes

Win an iPad Mini. Enter to win now!