Motorola M68CPU32BUG User Manual page 38

Debug monitor
Table of Contents

Advertisement

BM
Now suppose the user would like to insert an NOP between the ADD.L instruction and the
ASR.L instruction. Block move the object code down two bytes to make room for the NOP.
CPU32Bug>BM 6002 600B 6004<CR>
Effective address: 00006002
Effective address: 0000600B
Effective address: 00006004
CPU32Bug>MD 6000 600C;DI<CR>
00006000 D480
00006002 E2A2
00006004 E2A2
00006006 2602
00006008 4E4F
0000600C 4E71
Now the user need simply enter the NOP at address 6002.
CPU32Bug>MM 6002;DI <CR>
00006002 E2A2
00006002 4E71
00006004 E2A2
CPU32Bug>
CPU32Bug>MD 6000 600C;DI<CR>
00006000 D480
00006002 4E71
00006004 E2A2
00006006 2602
00006008 4E4F
0000600C 4E71
CPU32Bug>
M68CPU32BUG/D REV 1
Block of Memory Move
ADD.L
ASR.L
ASR.L
MOVE.L
SYSCALL
NOP
ASR.L
D1,D2 ? NOP<CR>
NOP
ASR.L
D1,D2 ? .<CR>
ADD.L
D0,D2
NOP
ASR.L
D1,D2
MOVE.L
D2,D3
TRAP
#15
NOP
3-8
DEBUG MONITOR COMMANDS
D0,D2
D1,D2
D1,D2
D2,D3
OUTSTR
BM

Advertisement

Table of Contents
loading

Table of Contents