Use REPLACE to replace the contents of one or more locations with
new data in terms of the current mode settings.
Before performing the replacement, the REPLACE command confirms
the contents of the specified locations.
Replacing Data:
_________ _____
When you replace ASCII or numeric data, the number of replacement
entries cannot exceed the number of existing entries. This means,
for example, that if you confirm the contents of six consecutive
locations, you can replace the contents of only those six locations.
If the number of replacement entries is less than the number of
existing entries, the remaining locations are filled with zeros.
In addition, PATCH truncates replacement entries if they exceed
the limit imposed on them by the current length mode. For ASCII
characters, the right-most characters are discarded. For numeric
data, the left-most digits are discarded.
Format:
REPLACE location = current-contents [,...]
new-contents
.
.
.
Mode Qualifiers Default
____ __________ _______
/BYTE
/WORD /LONG
/LONG
/OCTAL
/DECIMAL /HEXADECIMAL
/HEXADECIMAL
/[NO]ASCII /NOASCII
Prompts:
LOC> location
OLD> current-contents
NEW> new-contents
1 – Parameters
location
Specifies either (1) a single location whose contents are to be
replaced or (2) the starting address of a sequence of locations
whose contents are to be replaced.
current-contents
Specifies one or more data entries or to be replaced.
The data you specify must be the actual contents.
Do not specify conflicting data types within a single REPLACE
command.
new-contents
Specifies one or more data entries or that are to replace the current
contents.
Do not specify conflicting data types within a single REPLACE
command.