ME (Memory Enter)

Syntax

MEtypeaddress[[list]]

Parameters

type

Specifies the type of the data to be entered into memory.

Specifier Type

A ASCII characters
B Byte (hexadecimal)
I Integer (2-byte decimal)
IU Integer unsigned (2-byte decimal)
IX Integer hex (2-byte hexadecimal)
L Long (4-byte decimal)
LU Long unsigned (4-byte decimal)
LX Long hex (4-byte hexadecimal)
R Real (4-byte float)
RL Real long (8-byte float)
RT Real ten-byte (10-byte float)

If no type is given, the command defaults to the last type used by a Memory Enter (ME), a Memory Dump (MD), or a View Memory (VM) command. If no such commands were used, it defaults to byte-sized data.

address

Indicates where the data will be entered. If no segment is given in the address, the data segment (DS) is assumed.

list

List of data to enter into memory at address. These expressions must evaluate to data of the size specified by type. If list is not given, CodeView prompts for new values.

Description

The Memory Enter (ME) command enters one or more byte values into memory at a given address.

The command may include a list of expressions separated by spaces. The expressions are evaluated and entered in the current radix. If an invalid value appears in the list, CodeView refuses to enter the invalid value and ignores remaining values. If no list is given, CodeView prompts for new values.

Because it can modify any part of your program's memory, the Memory Enter command can change your program's instructions. The Assemble (A) command, however, is better suited to that purpose.

Mouse and Keyboard

There is no keyboard shortcut to enter items into memory. You can use the Memory window, however, to alter items in memory.

Entering Values

If you do not give a list of expressions in a Memory Enter (ME) command, CodeView prompts for a new value at the address you specify by displaying the address and its current value. At this point, you can do one of the following:

Replace the value by typing a new value.

Skip to the next value by pressing the SPACEBAR. Once you have skipped to the next value, you can change its value or skip again. CodeView will automatically prompt with new addresses as necessary.

Return to the preceding value by typing a backslash (\). When you return to the preceding value, CodeView starts a new display line and prompts with the address and current value.

Stop entering values and return to the command prompt by pressing ENTER.

Example

The following example replaces the byte at DS:256 (DS:0100 hexadecimal) with 66 (42 hexadecimal).

>MEB 256

3DA5:0100 41 A. 66

>