Chapter 16: Programming
294
•
Select
prgm
from the
PRGM CTL
menu, and then enter the program name.
prgm
name
When
prgm
name
is encountered during execution, the next command that the program executes is
the first command in the second program. It returns to the subsequent command in the first
program when it encounters either
Return
or the implied
Return
at the end of the second program.
Subroutine
( '
Notes about Calling Programs
Variables are global.
label
used with
Goto
and
Lbl
is local to the program where it is located.
label
in one program is not
recognized by another program. You cannot use
Goto
to branch to a
label
in another program.
Return
exits a subroutine and returns to the calling program, even if it is encountered within nested
loops.
Running an Assembly Language Program
You can run programs written for the TI-84 Plus in assembly language. Typically, assembly
language programs run much faster and provide greater control than the keystroke programs that
you write with the built-in program editor.
Note:
Because an assembly language program has greater control over the calculator, if your
assembly language program has error(s), it may cause your calculator to reset and lose all data,
programs, and applications stored in memory.
When you download an assembly language program, it is stored among the other programs as a
PRGM
menu item. You can:
•
Transmit it using the TI-84 Plus communication link (Chapter 19).
•
Delete it using the MEM MGMT DEL screen (Chapter 18).
To run an assembly Program, the syntax is:
Asm(
assemblyprgmname
)
Program
Output