Stop At Address - Motorola M68HC11EVB User Manual

Table of Contents

Advertisement

OPERATING INSTRUCTIONS
STOPAT

4.6.16 Stop at Address

STOPAT <address>
where:
<address>
The STOPAT command causes a user program to be executed one instruction at time until the
specified address is encountered. Execution begins with the current user PC address and stop just
before execution of the instruction at the specified stop address. The STOPAT command should
only be used when the current value of the user PC register is known. For example after a
breakpoint is reached or after an RD command is used to set the user PC.
The STOPAT command has an advantage over breakpoints in that a stop address can be a ROM
location while breakpoints only operate in RAM or EEPROM locations. Since the STOPAT
command traces one instruction at a time with a hidden return to the monitor after each user
instruction, some user programs will appear to execute slowly.
The stop address specified in the STOPAT command must be the address of an opcode just as
breakpoints can only be set at opcode addresses.
Refer to example program shown on page 4-15 for the following
STOPAT command example. The RD command was used prior to
this example to set the user PC register to $C000.
EXAMPLE
>STOPAT 0108<CR>
P-0108 Y-DEFE X-F4FF A-04 B-FE C-90 S-0047
>
4-28
The specified user program counter (PC) stop address.
NOTE
DESCRIPTION
Execute example program until $0108 is reached.
Stop at Address
M68HC11EVB/D

Advertisement

Table of Contents
loading

Table of Contents