Inspect Manual

Using Inspect on a TNS/R System
Inspect Manual429164-006
15-12
Machine Code Addresses
Register aliases are used when TNS/R instructions are displayed. General purpose
TNS/R registers may also be identified using one or more aliases.
These mapping of aliases to registers is supported by Inspect:
Register Alias Register Alias
$1 $AT $17 $S1
$2 $V0 $18 $S2
$3 $V1 $19 $S3
$4 $A0 $20 $S4
$5 $A1 $21 $S5
$6 $A2 $22 $S6
$7 $A3 $23 $S7
$8 $T0 $24 $T8
$9 $T1 $25 $T9
$10 $T2 $26 $K0
$11 $T3 $27 $K1
$12 $T4 $28 $GP
$13 $T5 $29 $SP
$14 $T6 $30 $FP
$15 $T7 $31 $RA
$16 $S0
Machine Code Addresses
Several of the commands described in the following sections accept machine code
addresses. When debugging accelerated programs, TNS/R code addresses must be
preceded by the TNS/R clause to be distinguished from TNS addresses. (The TNS/R
clause can also be abbreviated as “R”.
TNS/R code addresses can be specified as any expression that computes an integer
result that can be expressed in 32 bits. Examples of TNS/R address expressions as
used with the ICODE command include:
1. This lists the instruction three instructions prior to the specified address
(instructions are four bytes long).
2. This lists three instructions starting two instructions prior to the current instruction.
Usage Considerations
The current input radix is used to evaluate all numbers unless a different base is
explicitly specified (using one of the standard base prefixes). It is most useful to
use hexadecimal when inputting TNS/R addresses.
Register names can be used in expressions.
ICODE R %h70421164
ICODE R %h70421164 - 3 * 4 (1)
ICODE R $pc - 2 * 4 for 3 (2)