Breakpoint→Set At Cursor (Alt, B, S) - HP 68302 User Manual

Hide thumbs Also See for 68302:
Table of Contents

Advertisement

Chapter 8: Menu Bar Commands
Breakpoint→Set at Cursor (ALT, B, S)
Breakpoint→Set at Cursor (ALT, B, S)
Sets a breakpoint at the cursor-selected address in the Source window.
The breakpoint marker "BP" appears on lines at which breakpoints are set.
When a breakpoint is hit, program execution stops immediately before
executing the instruction or source code line at which the breakpoint is set.
A set breakpoint remains active until it is deleted.
Because breakpoints are set by replacing program opcodes with breakpoint
instructions, they cannot be set in programs stored in target system ROM. In
addition, breakpoints do not function properly when set at addresses where
no opcode is found.
The TRAP instruction is used as the breakpoint instruction. The TRAP
number is specified with the Settings→Emulator Config→Hardware... (ALT,
S, E, H) command.
The Breakpoint→Set at Cursor (ALT, B, S) command replaces the original
instruction at the specified address with a TRAP instruction. When the
emulator detects the TRAP instruction, it breaks to the monitor and restores
the original instruction. When the emulator detects a TRAP instruction that
was not inserted as a breakpoint, the emulator breaks and transfers to the
"UNDEFINED BREAKPOINT at address" status.
The Breakpoint→Set at Cursor (ALT, B, S) command may cause BP markers
to appear at two or more addresses. This happens when a single instruction
is associated with two or more source lines. You can select the mnemonic
display mode to verify that the breakpoint is set at a single address.
Command File Command
BP SET address
See Also
"To set a breakpoint" in the "Using Breakpoints and Break Macros" section of
the "Debugging Programs" chapter.
248

Advertisement

Table of Contents
loading

Table of Contents