Block Of Memory Compare (Bc) - Motorola M68CPU32BUG User Manual

Debug monitor
Table of Contents

Advertisement

BC
3.2 BLOCK OF MEMORY COMPARE
BC <range><del><addr>[;B|W|L]
options:
B – Byte
W – Word
L – Longword
The BC command compares 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 compare four long words (or 16 bytes) to the <addr> location. If the
range beginning address is greater than the end address, an error results. An error also results if
an option field is specified without a count in the range.
For the following examples, assume the following data is in memory.
CPU32Bug>MD 4000:20;B<CR>
00004000
54 48 49 53 20 49 53 20
00004010
00 00 00 00 00 00 00 00
CPU32Bug>MD 4100:20;B<CR>
00004100
54 48 49 53 20 49 53 20
00004110
00 00 00 00 00 00 00 00
EXAMPLES
CPU32Bug>BC 4000,401F 4100<CR>
Effective address: 00004000
Effective address: 0000401F
Effective address: 00004100
CPU32Bug>
M68CPU32BUG/D REV 1
Block of Memory Compare
41 20 54 45 53 54 21 21
00 00 00 00 00 00 00 00
41 20 54 45 53 54 21 21
00 00 00 00 00 00 00 00
Memory compares, nothing printed
3-3
DEBUG MONITOR COMMANDS
THIS IS A TEST!!
................
THIS IS A TEST!!
................
BC

Advertisement

Table of Contents
loading

Table of Contents