System Debug Reference Manual (32650-90888)
Chapter 6 239
System Debug Command Specifications M-X
NM
Examples
%cmdebug > mr cmpc
CMPC=PROG %0.01754 := prog(0.1762)
Modify the contents of the CM program counter. Only the offset portion of the CM logical
address can be modified. It is not possible to change the logical segment number portion.
Note that this also modifies CIR, the current instruction register.
%cmdebug > mr x 0
X=000123 := 0
Zero the X register.
$nmdebug > mr pc pc + 4
pc=0021d7b4 := 0021d7b8
Advance the PC (this changes pcq front and pcq back).
$nmdebug > mr ret0 [psp-20]
r28=00000001 := 00ef2340
Modify return register 0 (r28) to be the contents of the address specified by psp-20.
Limitations, Restrictions
The PC register can not be modified unless the user has privileged mode.
When CM code has been translated, and is executing translated, modification of the CM
registers may result in an undefined/undesirable state.
Refer to appendix C for a discussion of CM object code translation, node points, and
breakpoints in translated CM code.
NM
Enters native mode (nmdat / nmdebug). See the CM command.
Syntax
NM
The command switches from CM (cmdat/cmdebug) to NM (nmdat/nmdebug). If the
windows are on, the screen is cleared and the set of windows enabled for nmdebug are
redrawn. The command also sets several environment variables. The variables affected
and their new values are shown below:
ENV MODE "NM"
ENV INBASE NM_INBASE
ENV OUTBASE NM_OUTBASE