System Debug Reference Manual (32650-90888)

Chapter 4 119
System Debug Command Specifications :-Exit
DIS
DIS
cmword1
[
cmword2
] [
cmlogaddr
]
The DCx (display code) commands can be used to display a block of code at a specified
address. The program windows also display disassembled code.
Parameters
nmword
The Precision Architecture instruction to disassemble. All disassembled
values are in decimal unless otherwise indicated.
cmword1
The CM HP 3000 instruction to disassemble.
cmword2
A second CM HP 3000 instruction to disassemble for double-word
instructions.
virtaddr
If a virtual address is given, this value is used when computing branch
addresses. That is, "disassemble this instruction as if it were at the
indicated address." A valid virtual address results in branch targets being
printed as a procedure name plus offset. If this value is omitted, branch
targets always appear as numeric values.
cmlogaddr
If a CM logical address is specified, the address is used to compute the
targets of CM PCAL instructions.
Cmlogaddr
must be a full CM logical code address (LCPTR).
For example,
CMPC Current CM program counter
CMPW+4 Top of CM program window + 4
PROG(2.102) Program file logical seg 2 offset 102
fopen+102 CM procedure fopen + %102 (assumes CM mode)
cmaddr('fopen')+%102 CM procedure fopen + %102 (NM or CM
mode)
Examples
$nmdebug > dis 6bc23fd9
STW 2,-20(0,30)
This NM example disassembles the NM word $6bc23fd9 into the STW instruction.
$nmdebug > dis e84001d8
BL $000000f4,2
$nmdebug > dis e84001d8, a.4adeb4
BL test_proc+$68,2
This NM example disassembles the word $e84001d8 into a BL instruction. In the second
command, the virtual address of the instruction is specified, and the disassembler is able
to compute and to display the effective procedure name target of the branch.
%cmdebug > dis 41101
LOAD DB+%101