154
When executing the function TRACE, the argument must be entered
in
single
quotes. For example:
VBTEVE[I]JV
V
STEVE
I
[:1.
:I
A4,
..
j,
xl
[2:1
B~"2
X I
[:3]
C~:~
X I
[I~.
::r
n~-'·I·
X I
[~:.i]
A+B+C+D
V
TRACE
'STEVE
'
.....
I----Establish
a trace vector for each
BTEVE
2 statement
in
function STEVE.
STEVE[l::t
2
STEVE[2J
4·
....
1---------
Each statement
of
function
BTEVE
[3::1 b STEVE has been traced.
STEVE['+] B
STEVE[~:j]
20
20
Stop Control
TflSTEVEf-\O
STEVE
2
Stop
control
is
used
to
stop
the
execution of a function just before specified
statements. At each stop, the function name and statement number
of
the
state-
ment
to
be
executed next
is
displayed. The statements are specified by a stop
vector. The format
of
the
stop
control function
is
S~
STEVE~V,
where STEVE
is
the
name
of
the
function and V
is
the vector specifying the statements. After
the stop, the system
is
in
the
suspended state (see Chapter 7); execution
is
resumed by entering
~DLC
(see Chapter 5). S
~
STEVE~
t 0 (STEVE
is
the
function name) must be entered
to
discontinue
the
stop control function.
Stop
control can be set by statements within a function. These statements
initiate halts when a variable contains a certain value. For example,
S~
STEVE~4xN
>8
means stop before statement 4
in
function STEVE when
N
is
greater than 8.
Trace control and stop control can both
be
used
in
the
same user-defined function.
An
attempt
to
set trace control
or
stop control for a nonexistent function creates
a variable and causes a syntax error. For example:
)CLEAR
CLEAR
WB
SI:!.F~··:1.
2
:5
SYNTAX
ERROR
SI:!.F~··
1 2
:5
A
)VARB
F
I
···
..
!"