MPE/iX System Utilities Reference Manual (32650-90882)
Chapter 18 167
PATCH
Operation
When you enter the M command, the contents of the current instruction are displayed
followed by a comma. To leave the value unchanged, you
must
re-enter the contents! If you
press
RETURN without entering anything the instruction will be set to zeros (%000000, a
NOP instruction).
For a list of segment names and their addresses within a program file use the PMAP option
of the PREP command.
For information regarding the offsets of instructions and global variables in program files,
refer to compiler options for the programming language in which the code was written.
Example
The following example shows you how to use the M and D commands to display and modify
the contents of one instruction in the file BIGBUCS.PUB.SALES:
FILE = ? BIGBUCS.PUB.SALES
?D,0,20,1
031042
?M,0,20,1
031042, 420031
?D,0,20,1
420031
?
DG
The DG command displays the global area of the initial stack. To invoke this command
enter:
?DG,
reloffset
[,
numwords
]
Parameters
Example
FILE? PINITRIN.PUB.TEST
?DG,0,4
000010
000015
000000
000046
?
reloffset
The DB-relative offset of the word to display, found in your compiler listing.
For more information, refer to the compiler options for the programming
language in which the code was written.
numwords
The number of words, in octal, that you wish to display. The default is one.