Block Of Memory Fill (Bf) - Motorola M68CPU32BUG User Manual

Debug monitor
Table of Contents

Advertisement

BF
3.3 BLOCK OF MEMORY FILL
BF <range><del><data>[<del><increment>] [;B|W|L]
where:
<data> and <increment> are both expression parameters
options:
B – Byte
W – Word
L – Longword
The BF command fills the specified range of memory with a data pattern. If an increment is
specified, then <data> is incremented by this value following each write, otherwise <data>
remains a constant value. Enter a negative value in the increment field to create a decrementing
pattern . The data entered by the user is right-justified in either a byte, word, or longword field as
specified by the option selected. The default field length is W (Word).
User-entered data or increment must fit into the data field or leading bits are truncated to size. If
truncation occurs, then a message is printed stating the actual data pattern and/or the actual
increment value.
If the range is specified using a count then the count is assumed to be in terms of the data size.
Truncation always occurs on byte or word sized fields when negative values are entered. For
example, entering "-1" internally becomes $FFFFFFFF which gets truncated to $FF for byte or
$FFFF for word sized fields. There is no difference internally between entering "-1" and entering
$FFFFFFFFF, so truncation occurs for byte or word sized fields.
If the upper address of the range is not on the correct boundary for an integer multiple of the data
to be written, then data is filled to the last boundary before the upper address. Addresses outside
of the specified range are not written under any condition. ''Effective address'' messages
displayed by the command show the extent of the area written.
EXAMPLES
Assume memory from $4000 to $402F is clear.
CPU32Bug>BF 4000,401F 4E71<CR>
Effective address: 00004000
Effective address: 0000401F
CPU32Bug>MD 4000 402F<CR>
00004000
4E71 4E71 4E71 4E71
00004010
4E71 4E71 4E71 4E71
00004020
0000 0000 0000 0000
Since no option was specified, the length of the data field defaulted to word.
M68CPU32BUG/D REV 1
Block of Memory Fill
4E71 4E71 4E71 4E71
4E71 4E71 4E71 4E71
0000 0000 0000 0000
3-5
DEBUG MONITOR COMMANDS
NqNqNqNqNqNqNqNq
NqNqNqNqNqNqNqNq
................
BF

Advertisement

Table of Contents
loading

Table of Contents