Motorola M68CPU32BUG User Manual Page 38

  • Download
  • Add to my manuals
  • Print
  • Page
    / 196
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 37
DEBUG MONITOR COMMANDS
M68CPU32BUG/D REV 1 3-8
BM Block of Memory Move 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 ADD.L D0,D2
00006002 E2A2 ASR.L D1,D2
00006004 E2A2 ASR.L D1,D2
00006006 2602 MOVE.L D2,D3
00006008 4E4F SYSCALL OUTSTR
0000600C 4E71 NOP
Now the user need simply enter the NOP at address 6002.
CPU32Bug>MM 6002;DI <CR>
00006002 E2A2 ASR.L D1,D2 ? NOP<CR>
00006002 4E71 NOP
00006004 E2A2 ASR.L D1,D2 ? .<CR>
CPU32Bug>
CPU32Bug>MD 6000 600C;DI<CR>
00006000 D480 ADD.L D0,D2
00006002 4E71 NOP
00006004 E2A2 ASR.L D1,D2
00006006 2602 MOVE.L D2,D3
00006008 4E4F TRAP #15
0000600C 4E71 NOP
CPU32Bug>
Page view 37
1 2 ... 33 34 35 36 37 38 39 40 41 42 43 ... 195 196

Comments to this Manuals

No comments