MPE/iX System Utilities Reference Manual (32650-90882)

168 Chapter18
PATCH
Operation
MG
The MG command modifies the global area of the intial stack. To invoke this command
enter:
?MG,
reloffset
[,
numwords
]
Parameters
The MG command displays the contents of the current stack word, followed by a comma. To
leave the value unchanged, you
must
re-enter the contents! If you press RETURN without
entering anything the word will be filled with zeros.
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.
Examples
Here is an example of using the MG and DG command. Begin by running PATCH and entering
the executable file name. In this example, the file is BIGTECH.PUB.SYS.
PROGRAM PATCH G.00.00 (C) HEWLETT-PACKARD CO., 1976
FILE =?BIGTECH.PUB.SYS
The following displays values in the first five addresses:
?DG, 0,5
000112
000052
000064
000264
000464
The following would set the first five locations to
zero
because RETURN is pressed without
entering anything after each location is displayed:
?MG, 0,5
000112,
000052,
000064,
000264,
000464,
The following displays the changes you just made:
?DG ,0,5
000000
000000
000000
000000
000000
reloffset
The DB-relative offset of the word to modify, found in your compiler listing.
numwords
The number of words, in octal, that you wish to modify. The default is one.