MPE/iX System Utilities Reference Manual (32650-90882)
Chapter 21 187
SLPATCH
Operation
old value, enter * and press Return. To enter a new value, type the number (in octal) and
press
Return. If you only press Return, you will be prompted to enter * or a number.
NOTE
To find the segment displacement, add the instruction offset (generally found
in the compiler listing) to the starting address of the procedure (supplied by
the PMAP option of the PREP command).
For information regarding the offsets of instructions in program files, refer to
compiler options for the programming language in which the code was
written.
SLPATCH Example
Invoke SLPATCH and enter the SL name. For example, if the name of the segmented library
file is SL.PUB.HITECH, you enter:
SLPATCH
SLPATCH A.43.11 (C) HEWLETT-PACKARD CO., 1976
SL FILE? SL.PUB.HITECH
Next, display 4 words, beginning with word 0 of segment SDMCOMM:
? SDMCOMM,D,0,4
025001
051404
041605
021040
Display 3 words, beginning with word 5 in the
same
segment. Notice the segment name
need not be entered again:
? D,0,3
023113
040415
050641
Change the contents of the first word of SDMCOMM segment and terminate SLPATCH:
? M,0,1
025001,025002
? EXIT
Additional Information
For more information on segmented libraries refer to the MPE Segmenter Reference
Manual.