Cycles command, Gotocycle command – Freescale Semiconductor Microcontrollers User Manual

Page 264

Advertising
background image

HC08 Full Chip Simulation

Configuration Procedure

264

Microcontrollers Debugger Manual

CYCLES Command

The CYCLES command changes the value of the cycles counter. The cycles counter
counts the number of processor cycles that have passed during execution. The Cycles
Window shows the cycle counter. The cycle count can be useful for timing procedures.

Syntax

>Cycles <n>

Where:

<n> Integer value for the cycles counter

Examples

>CYCLES 0

Reset cycles counter

>CYCLES 1000

Set cycle counter to 1000.

GOTOCYCLE Command

The GOTOCYCLE command executes the program in the simulator beginning at the
address in the program counter (PC). Execution continues until the cycle counter is equal
to or greater than the specified value, until a key or the Stop button on the toolbar is
pressed, until it reaches a break point, or until an error occurs.

Syntax

>GOTOCYCLE <n>

Where:

<n> Cycle-counter value at which the execution stops

Example

>GOTOCYCLE 100

Execute the program until the cycle counter equals 100.

Advertising