Download Print this page

Prgm Ctl (Control) Instructions - Texas Instruments TI-80 Manual Book

Graphing calculator

Advertisement

PRGM CTL (Control) Instructions

PRGM CTL (program control) instructions are accessed only from within the
program editor. They direct the flow within an executing program, making it easy
to repeat or skip commands during program execution. While the program editor
is displayed, press K. The selected menu item is copied to the cursor
location.
PRGM CTL
Menu
Controlling
Program Flow
IF
CTL I/O EXEC
1: IF
2: THEN
3: ELSE
4: FOR(
5: END
6: PAUSE
7: LBL
8: GOTO
9: PRGM_
0: RETURN
A: STOP
Program control instructions tell the TI-80 which command to
execute next in a program.
define to determine what command to execute next. The
condition frequently uses relational tests (Chapter 2), such as
.
IF A<7:A+1!A
(
, item 1) is used for testing and branching. If the
IF
PRGM CTL
condition is false (zero), the command immediately following
is skipped. If the condition is true (nonzero), that command
IF
is executed.
instructions can be nested.
IF
:IF
condition
:
command if true
:
command
Creates a conditional test.
Used with
IF
.
Used with
IF-THEN
Creates incrementing loop.
Signifies end of loop,
Pauses program execution.
Defines a label.
Goes to a label.
Executes a program as a subroutine.
Returns from a subroutine.
Stops program execution.
checks a condition that you
IF
.
IF-THEN
, or
ELSE
Programming 10-7
.

Hide quick links:

Advertisement

loading