DEBUG MONITOR COMMANDS
M68CPU32BUG/D REV 1
3-7
BM
Block of Memory Move
BM
3.4 BLOCK OF MEMORY MOVE
BM <range><del><addr> [;B|W|L]
options:
B – Byte
W – Word
L – Longword
The BM command copies the contents of the memory addresses, defined by <range>, to another
place in memory, beginning at <addr>. The option field is only allowed when <range> is
specified using a count. In this case the B, W, or L defines the size of data to which the count is
referring. For example, a count of four with an option of L would mean to move four longwords
(or 16 bytes) to the new location. An error results if an option field is specified without a count in
the range.
EXAMPLES
Assume memory from $4000 to $402F is clear.
CPU32Bug>MD 4100:20;B<CR>
00004100 544B 4953 2049 5320 4120 5445 5354 2121 THIS IS A TEST!!
00004110 0000 0000 0000 0000 0000 0000 0000 0000 ................
CPU32Bug>BM 4100 410F 4000<CR>
Effective address: 00004100
Effective address: 0000410F
Effective address: 00004000
CPU32Bug>MD 4000:20;B<CR>
00004000 5448 4953 2049 5320 4120 5445 5354 2121 THIS IS A TEST!!
00004010 0000 0000 0000 0000 0000 0000 0000 0000 ................
This utility is useful for patching assembly code in memory. Suppose the user had a short
program in memory at address $6000.
CPU32Bug>MD 6000 600A;DI<CR>
00004000 D480 ADD.L D0,D2
00004002 E2A2 ASR.L D1,D2
00004004 2602 MOVE.L D2,D3
00004006 4E4F0021 SYSCALL .OUTSTR
0000400A 4E71 NOP
Содержание M68CPU32BUG
Страница 16: ...GENERAL INFORMATION M68CPU32BUG D REV 1 1 8 ...
Страница 30: ...DEBUG MONITOR DESCRIPTION M68CPU32BUG D REV 1 2 14 ...
Страница 102: ...DEBUG MONITOR COMMANDS M68CPU32BUG D REV 1 3 72 ...
Страница 168: ...DIAGNOSTIC FIRMWARE GUIDE M68CPU32BUG D REV 1 6 24 ...