MF (Memory Fill)

Syntax

MF range list

Parameters

range

Specifies the range of memory to be filled.

list

List of byte values used to fill range.

Description

The Memory Fill (MF) command fills the addresses in the specified range with the byte values specified in the argument list. You can enter byte values using any radix.

The values in the list are repeated until the whole range is filled. Thus, if you specify only one value, the entire range is filled with that same value. If the list has more values than the number of bytes in the range, the command ignores any extra values.

The Memory Fill command provides an efficient way to fill up a block of memory with any values you specify. You can use it to initialize large data areas, such as arrays or structures. Because it can modify any part of your program's memory, the Memory Fill command can change your program's instructions. However, the Assemble (A) command is better suited to that purpose.

Examples

The following example fills 255 (100 hexadecimal) bytes of memory starting at DS:0100 with the value 0; hexadecimal radix is assumed. This command could be used to reinitialize the program's data without having to restart the program.

>MF 100 L 100 0

>

This next example fills the 100 (64 hexadecimal) bytes starting at table with the following hexadecimal byte values: 42, 79, 74. These three values are repeated (42, 79, 74, 42, 79, 74, . . . ) until all 100 bytes are filled; hexadecimal radix is assumed.

>MF table L 64 42 79 74

>