Debug Manual

Table Of Contents
Debug Commands
Debug Manual421921-003
4-59
Modify Register Contents
unless an N-mode address is used, in which case a 32-bit word is used for new-
value.
If you omit new-value, Debug prompts for a 16-bit word expression to represent
the new contents of the variable. The prompt is of the form:
address
is the address of the word to be modified.
current-value
is the current value of the indicated variable.
You can enter one value at the prompt. If you enter a value, Debug prompts for a
value for the next consecutive location. If you enter a blank, current-value is
unchanged and Debug prompts for a value for the next location. If you enter
nothing, current-value is unchanged and Debug returns to its command-
input mode.
Considerations
When N addressing mode is used, the current-value displayed and the new-
value received are 32-bit numbers; the default base is hexadecimal.
Examples
106,01,00012-m L-3I,1,2,3
248,01,00023-M N 0X80020000, 0, 0, 0, 0 ! Change four 32-bit
! values to 0.
For more examples that use the M command, see Appendix F, Sample Debug
Sessions.
Modify Register Contents
The M command can modify the contents of one of a process’s registers. The modify-
register form of the M command is:
register
represents one of the registers for that process; see Register Syntax on page 3-7.
address: current-value <-
M register [ , new-value ]