Defining A Software Breakpoint - HP H8/3003 User Manual

Emulator terminal interface
Table of Contents

Advertisement

bc -d trig1 #disable
bc -d trig2 #disable
Defining a Software
Breakpoint
!ASYNC_STAT
615! Software break point: 000104e
reg pc=00104e ccr=80 er0=00000000 er1=000ff800 er2=00000041 er3=00000011
reg er4=00002000 er5=00000000 er6=00000000 er7=000ff904 sp=000ff904 mdcr=c7
###BREAKPOINT FEATURE IS ENABLED###
bp 000104e #disabled
###BREAKPOINT FEATURE IS ENABLED###
bp 000104e #enabled
!ASYNC_STAT
615! Software breakpoint: 000104e
###BREAKPOINT FEATURE IS ENABLED###
bp 000104e #disabled
2-28 Getting Started
M> bc -e bp
Now that the software breakpoint is enabled, you can define software
breakpoints. Enter the following command to break on the address of
the Write_Msg label.
M> bp 104e
Run the program and verify that execution broke at the appropriate
address.
M> r 1000
U> m 0ff800=41
M> reg
Notice that PC contains 104e.
When a breakpoint is hit, it becomes disabled. You can use the -e
option to the bp command to re-enable the software breakpoint.
M> bp
M> bp -e 104e
M> bp
M> r 1000
U> m 0ff800=41
M> bp

Advertisement

Table of Contents
loading

Table of Contents