DISPLAYING CODE, DATA, AND DISC SEGMENTS IN PRIVILEGED MODE [ MPE Debug/Stack Dump Reference Manual ] MPE/iX 5.0 Documentation
MPE Debug/Stack Dump Reference Manual
DISPLAYING CODE, DATA, AND DISC SEGMENTS IN PRIVILEGED
MODE
The D command can be followed by a letter indicator in order to establish
a display base other than the stack relative bases DB, DL, Q, and S, or
the code relative bases PB, P, and PL. The privileged mode bases allow
you to display absolute code locations in bank zero or in other banks,
and to display data relative to the absolute location of DB. For example,
in order to display code starting at an absolute location in bank 2,
enter:
?D EA2+ 121144+ 372,20 (Display 16 words at location 372
relative to absolute location
121144 in bank 2.)
DEBUG returns the octal listing listing, 8 words per line as follows:
EA2+ 121536 00000 00103 00105 00000 00000 00314 00372 00402
EA2+ 121546 00000 00000 00000 00000 00000 00000 00000 00000
The privileged mode user can also display code or data relative to the
system base, to the base of any code segment or the base of any data
segment. To display at a location relative to the system base, enter:
?D SY 161 (Displays location 161 relative to the system base.)
When displaying relative to the base of a code or data segment, any
offset within the segment is separated from the relative segment number
by a plus (+). For example:
?D DA 5+ 74,10,I (Displays 8 words of data in decimal starting
at location 74 of data segment 5.)
?D CO 301+ 20,20 (Display 16 words of code starting at
location 20 of user segment 301.)
?D CO(10+ 6)+ 10,#64 (Display 64 words of code starting at
location 10 of system segment 16; since the segment
number is an expression, it must be enclosed
in parentheses.)
The contents of any segment of disc can be displayed with the DEBUG
command DV. If a disc logical device number is not specified, the system
disc (ldev=1) is assumed. The starting sector address must be specified
and, if more than one, the number of sectors to be displayed must be
specified. Portions of a sector cannot be displayed. For example:
?DV 2+ 32715,3 (Display 3 sectors starting at sector 32715 on
logical device 2.)
MPE/iX 5.0 Documentation