Fujitsu F2 MC-16 Computer Accessories User Manual


 
230
CHAPTER 2 DEPENDENCE FUNCTIONS
2.4.5.5 Reading Trace Data On-the-fly
Trace data can be read while executing a program. However, this is not possible during
sampling. Disable the trace function or terminate tracing before attempting to read trace
data.
Reading Trace Data On-the-fly
To disable the trace function, use the DISABLE TRACE command. Check whether or not the trace function
is currently enabled by executing the SHOW TRACE command with /STATUS specified, or by using the
built-in variable, %TRCSTAT.
Tracing terminates when the sequencer has terminated. If Not Break is specified here, tracing terminates
without a break operation. It is possible to check whether or not tracing has terminated by executing the
SHOW TRACE command with /STATUS specified, or by using the built-in variable, %TRCSAMP.
To read trace data, use the SHOW TRACE command; to search trace data, use the SEARCH TRACE
command.
[Example]
>GO
>>SHOW TRACE/STATUS
en/dis = enable
buffer full = nobreak
sampling = on <- Trace sampling continues.
>>SHOW TRACE/STATUS
en/dis = enable
buffer full = nobreak
sampling = end <- Trace sampling ends.
frame no. = -00805 to 00000
step no. = -00262 to 00000
>>SHOW TRACE -52
step no. address mnemonic level
\sub5:
-00052 : FF0125 LINK #02 1
-00051 : 000186 internal read access. 10E6 1
-00050 : 1010D6 external write access. 10E6 1
-00049 : 000186 internal write access. 10D6 1
If the CLEAR TRACE command is executed with the trace ending state, trace data sampling can be re-
executed by re-executing the sequencer from the beginning.