beautypg.com

S (step) – Epson S5U1C62000A User Manual

Page 184

background image

172

EPSON

S5U1C62000A MANUAL

(S1C60/62 FAMILY ASSEMBLER PACKAGE)

CHAPTER 9: DEBUGGER

s

(step)

Function

This command single-steps the target program from the current PC position by executing one instruc-
tion at a time.

Format

>s []

(direct input mode)

:

Number of steps to be executed; decimal (default is 1)

Condition: 0

step

65,535

Operation

If the is omitted, only the program step at the address indicated by the PC is executed, other-
wise the specified number of program steps is executed from the address indicated by the PC.

>s

... Executes one step at the current PC address.

>s 20

... Executes 20 steps from the current PC address.

The program execution is suspended by the following cause even before the specified number of steps
is completed.
• The [Key Break] button is clicked or the [Esc] key is pressed
• The break or reset switch on the ICE is pushed

After each step is completed, the register contents in the [Register] window are updated. If the
[Register] window is closed, the register contents are displayed in the [Command] window same as
executing the rd command.

Notes

• The step count must be specified within the range of 0 to 65,535. An error results if the limit is ex-

ceeded.

Error : Number of steps out of range, use 0-65535.

• If the [Data] window is opened, its display contents are updated after the execution.

• During a single-step operation, the program will not break even if the break condition set by a

command is met.

• Unlike in successive executions (g or gr command), the [Register] window is updated every time a

step is executed.

• The s command (one step) is also executed by pressing [Enter] at the command prompt ">".

GUI utility

[Run | Step] menu item, [Step] button

When this menu item or button is selected, the s command without step count is executed.

[Step] button