Chapter 16: Programming
281
PRGM CTL (Control) Instructions
PRGM CTL Menu
To display the
PRGM CTL
(program control) menu, press
from the program editor only.
These menu items direct the flow of an executing program. They make it easy to repeat or skip a
group of commands during program execution. When you select an item from the menu, the name
is pasted to the cursor location on a command line in the program.
To return to the program editor without selecting an item, press
‘
.
Controlling Program Flow
Program control instructions tell the TI-84 Plus which command to execute next in a program.
If
,
While
, and
Repeat
check a defined condition to determine which command to execute next.
Conditions frequently use relational or Boolean tests (Chapter 2), as in:
CTL
I/O EXEC
1: If
Creates a conditional test.
2: Then
Executes commands when
If
is true.
3: Else
Executes commands when
If
is false.
4: For(
Creates an incrementing loop.
5: While
Creates a conditional loop.
6: Repeat
Creates a conditional loop.
7: End
Signifies the end of a block.
8: Pause
Pauses program execution.
9: Lbl
Defines a label.
0: Goto
Goes to a label.
A: IS>(
Increments and skips if greater than.
B: DS<(
Decrements and skips if less than.
C: Menu(
Defines menu items and branches.
D: prgm
Executes a program as a subroutine.
E: Return
Returns from a subroutine.
F: Stop
Stops execution.
G: DelVar
Deletes a variable from within program.
H: GraphStyle(
Designates the graph style to be drawn.
I: OpenLib(
No longer used.
J: ExecLib(
No longer used.