19990401
8-5-7
Command Reference
Prog
Function:
This command specifies execution of another program as a subroutine. In the
RUN
•
MAT Mode, this command executes a new program.
Syntax:
Prog ”file name”
Example:
Prog ”ABC”
Description:
• Even when this command is located inside of a loop, its execution immediately breaks the
loop and launches the subroutine.
• This command can be used as many times as necessary inside of a main routine to call up
independent subroutines to perform specific tasks.
• A subroutine can be used in multiple locations in the same main routine, or it can be called
up by any number of main routines.
Main Routine
Subroutines
D
C
E
I
J
Prog ”E”
Prog ”I”
Prog ”J”
A
Prog ”D”
Prog ”C”
Level 1
Level 2 Level 3
Level 4
• Calling up a subroutine causes it to be executed from the beginning. After execution of the
subroutine is complete, execution returns to the main routine, continuing from the state-
ment following the Prog command.
• A Goto~Lbl command inside of a subroutine is valid inside of that subroutine only. It cannot
be used to jump to a label outside of the subroutine.
• If a subroutine with the file name specified by the Prog command does not exist, an error
occurs.
• In the
RUN
•
MAT Mode
, inputting the Prog command and pressing
w
launches the
program specified by the command.
Summary of Contents for ALGEBRA FX 2.0
Page 1: ... ALGEBRA FX 2 0 User s Guide ...
Page 19: ...19990401 ALGEBRA FX 2 0 ...
Page 26: ...19990401 1 1 Keys 1 1 1 Keys REPLAY COPY PASTE CAT CAL H COPY PRGM List Mat i ...
Page 122: ...19990401 ...
Page 280: ...19990401 ...
Page 310: ...19990401 ...
Page 358: ...19990401 8 8 2 Program Library egcw w ww w ...
Page 360: ...19990401 8 8 4 Program Library Example 1 Example 2 fw baw bf w fw baw ca w ...
Page 362: ...19990401 8 8 6 Program Library ...
Page 364: ...19990401 8 8 8 Program Library dw fcde wfcde wfcde fcde w daw w ...
Page 366: ...19990401 8 8 10 Program Library b awaw bwaw aw9d w ...
Page 423: ...19981001 MEMO ...
Page 424: ...19981001 MEMO ...
Page 425: ...19981001 MEMO ...