Operation Manual

Programming 13-11
8213PROG.DOC TI-82, Chapter 13, English Bob Fedorisko Revised: 02/09/01 9:25 AM Printed:
02/09/01 12:42 PM Page 11 of 18
Menu(
Menu(
sets up branching within a program. If
Menu(
is encountered during
execution, the menu screen is displayed with the specified menu items, the
dotted-bar pause indicator displays, and execution pauses until a menu
selection is made. (
PRGM CTL
item
C
)
The menu
title
is enclosed in
"
, followed by up to seven pairs of menu items
(
text
enclosed between
"
marks to display as the menu selection and the
label
to which to branch if that selection is made).
Menu("
title
","
text1
",
label1
,"
text2
",
label2
,
. . .
)
For example, during execution the instruction
Menu("TOSS DICE","FAIR DICE",A,"WEIGHTED DICE",B)
displays:
The program pauses until you select
1
or
2
. If you select
2
, for example, the
menu disappears and the program continues execution at
Lbl B
.
prgm
prgm
is used to enter instructions to execute other programs as
subroutines (page 13
.
18). When you select
prgm
, it is copied to the cursor
location. You may then type the letters of a program
name
. It is equivalent
to selecting existing programs from the
PRGM EXEC
menu, but allows you
to enter the name of a program that you have not yet created. (
PRGM CTL
item
D
)
prgm
name
Note: You cannot use this command with
RCL
(page 13
.
6).