To Count Simulated Clock Cycles - HP 68000 Series User Manual

Debugger/simulator
Table of Contents

Advertisement

Chapter 3: Loading and Executing Programs
Stepping Through and Running Programs
count of three will cause the program to break on the fourth execution of the
break address.
Multiple break addresses are OR'ed. In other words, if you specify more than
one break address, the program runs until either address is encountered.
Examples
To run the program until either line 20 or line 90 is encountered, whichever
occurs first.
Program Run Until #20,#90
To run from the current program counter address until the break address
update_system is encountered twice:
Program Run Until update_system %%2
The Until option in the command sets a temporary breakpoint at address
update_system. The pass count parameter %%2 specifies that the debugger is
to stop program execution on the second access to address update_system.

To count simulated clock cycles

• Look at the cycles value in the register window.
When using the simulator, the cycles value in the register window is the
cumulative number of clock cycles executed since this value was last reset (by
means of the command Memory Registers @cycles = 0 , for example).
This count is based on 68020 cycle counts, with the assumption that no
instructions overlap in the pipeline. Actual cycle counts on a pipelined
processor may be significantly less.
If an instruction causes an exception, cycle counts for exception processing are
included even if exception processing is disabled. Partially executed
instructions receive full cycle counts.
Cycle times are shown with the cache disabled. Enabling the cache has no
effect on cycle times.
88

Advertisement

Table of Contents
loading

This manual is also suitable for:

B1466

Table of Contents