The m command modifies memory contents.
m [-bhwd] addr [data... | -s string]
|-b||store 8 bit values|
|-h||store 16 bit values|
|-w||store 32 bit values|
|-d||store 64 bit values (on supporting architectures)|
|addr||address where to start storing data|
|data||data to be stored|
|-s string||string argument, stored as bytes|
Invoking the m command with only the addr argument enters the interactive command mode.
The m command is used to modify memory. Modification can be done in two ways, directly or interactive. In direct mode the data is given on the command line and the command terminates when all the data items given has been stored in memory. When no data is given on the command line the interactive mode is entered and the user can interactively display and modify memory locations.
If no size option is given to the command the environment variable datasize will be used to determine the size of data to work with.
When using a string as the data argument, -b will be the default datasize regardless of what the datasize environment variable is set to. Data is then taken from the given string argument and stored in consecutive locations. When -s option is used only the direct mode of the command is usable.
The following commands can be used when using the interactive mode.
|=||reread the current location|
|.||exit interactive mode|
The command uses the datasize environment variable.
The dump (d) command.