Radio Shack TRS-80 PC-4 Owner's Manual page 46

Trs-80 pc-4
Hide thumbs Also See for TRS-80 PC-4:
Table of Contents

Advertisement

• If the program is resumed, it
will
stop at the next STOP statement and the value of V
can be obtained again.
III
YE
1~513B
STOP
'jTOP
By
repeating this operation, the calculation process can
be
seen.
When assembling a complicated program, checking the process using table top debug
can be very difficult. However, if the variables are checked using this kind of STOP
statement, programming mistakes can be found and corrected more easily.
• Debug using the TR (trace) mode
If program execution is performed using the TR mode (press
l!@ceJ),
the program will
sequentially stop at each line and debugging can then be performed easily.
Let's use the TR mode to debug the example which was previously debugged using a
STOP command.
Operation:
Designate the RUN mode
~~
Designate the TR mode
~[EJ
RUN III
1131
Check the execution process
~
~
Continue program execution
III
4 III
87111
~
III
III
The value of Y
Y
III
III
READY P0
TA
READY PO
TA
STOP
P0-10
TA
~
?
TA
510f'
?
ni
"Of'
PO-20
"TR" and "STOP" will
?
be om itted hereafter.
?
-
PO-20
PO-30
P0-40
7569
P0-45
Repeated hereafter
Debugging using the TR mode is ideal for checking the entire flow of a program and
isolating mistakes that may have been made.
-43-

Advertisement

Table of Contents
loading

Table of Contents