146 EPSON S5U1C62000A MANUAL
(S1C60/62 FAMILY ASSEMBLER PACKAGE)
CHAPTER 9: DEBUGGER
9.8.4 Executing Program
The debugger can execute the target program successively or execute instructions one step at a time
(single-stepping).

Successive execution

(1) Types of successive execution
There are two types of successive execution available:
• Successive execution from the current PC
• Successive execution from the program start address (0x0100) after resetting the CPU
Table 9.8.4.1 Commands/menu items/tool bar buttons for successive execution
Function Command Menu Button
Successive execution from current PC g[Run | Go]
[Run | Go to Cursor]
Successive execution after resetting CPU gr [Run | Go from Reset]
(2) Stopping successive execution
Using the successive execution command (g <address>), can specify a temporary break address that is
only effective during program execution.
The temporary break address can also be specified from the [Source] window.
If the cursor is placed on an address line in the [Source] window and the [Go to Cursor] button
clicked, the program starts executing from the current PC address and breaks after executing the
instruction at the address the cursor is placed.
Except being stopped by this temporary break, the program continues execution until it is stopped by
one of the following causes:
• Break conditions set by a break set up command are met.
• The [Key Break] button is clicked or the [Esc] key is pressed.
• The [Break] or [Reset] switch on the ICE is pushed.
[Key Break] button When the program does not stop, use this button to forcibly stop it.
(3) On-the-fly function
The ICE and debugger provide the on-the-fly function to display the PC address every 0.5 seconds
during successive execution. The PC address is displayed in the relevant positions of the [Register]
window. If the [Register] window is closed, it is displayed in the [Command] window. The on-the-fly
function can be disabled and re-enabled using the otf command.
(4) Measuring execution time/steps
The ICE contains a 16-bit execution counter allowing measurement of the program execution time or
the number of steps executed. When the program starts executing successively, the execution counter
starts counting after resetting the counter. When the program execution is suspended, the counter
stops counting and the counted value is displayed in the [Command] window.
The count mode can be selected using the tim command. In the initial debugger settings, the execu-
tion time count mode is selected.
The following lists the maximum values that can be measured by the execution counter and measure-
ment error:
Execution time count mode: 6.5 × 65535 µsec = 425.9775 msec, error = ±6.5 µsec
Step count mode: 65535 steps, error = ±1 step
If the counter overflows during program execution, "Run time = Time over" will be displayed as the
results.