Go To Next Instruction (Gn) - Motorola M68CPU32BUG User Manual

Debug monitor
Table of Contents

Advertisement

GN
3.11 GO TO NEXT INSTRUCTION
GN
Use the GN command to set a temporary breakpoint at the next instruction's address, that is, the
one following the current instruction. GN then starts target code execution. After setting the
temporary breakpoint, the sequence of events is similar to that of the GO command. If there is
already a breakpoint at the tempory breakpoint location, the breakpoint must have a count less
than or equal to one or an error occurs.
GN is helpful when debugging modular code, because it allows the user to trace through a
subroutine call as if it were a single instruction.
EXAMPLE
The following section of code resides at $6000.
CPU32Bug>MD 6000:4;DI<CR>
00006000
7003
00006002
7201
00006004
61000FFA
00006008
2600
CPU32Bug>
The following simple subroutine resides at address $7000.
CPU32Bug>MD 7000:2;DI<CR>
00007000
D081
00007002
4E75
CPU32Bug>
Execute up to the BSR instruction.
CPU32Bug>RM PC<CR>
PC
=00003000 ? 6000.<CR>
CPU32Bug>GT 6004<CR>
Effective address: 00006004
Effective address: 00006000
At Breakpoint
PC
=00006004
SFC
=0=F0
D0
=00000003
D4
=00000000
A0
=00000000
A4
=00000000
00006004
61000FFA
CPU32Bug>
M68CPU32BUG/D REV 1
Go To Next Instruction
MOVE.L
MOVEQ.L
BSR.W
MOVE.L
ADD.L
RTS
SR
=2700=TR:OFF_S_7
DFC
=0=F0
D1
=00000001
D5
=00000000
A1
=00000000
A5
=00000000
BSR.W
#$3,D0
#$1,D1
$7000
D0,D3
D1,D0
Tempory breakpoint at $6004.
Current PC at $6000.
VBR
USP
=00003830
D2
=00000000
D6
=00000000
A2
=00000000
A6
=00000000
$7000
3-21
DEBUG MONITOR COMMANDS
GN
=00000000
SSP*
=00010000
D3
=00000000
D7
=00000000
A3
=00000000
A7
=00010000

Advertisement

Table of Contents
loading

Table of Contents