Inspect Manual

Using Inspect With TNS/R Native Programs
Inspect Manual429164-006
17-7
DISPLAY REGISTER
DISPLAY REGISTER
The DISPLAY REGISTER command displays the virtual frame pointer (VFP) for TNS/R
native stack frames. In addition, the contents of the registers will be relative to the
current stack frame. This means that as the current scope is changed to an active
stack frame, the register values will be what they were in that stack frame. If the
current scope is changed to a non-active stack frame, the register values will be what
are current in the program. Note that not all registers are saved in every procedure.
This may result in some registers having values left over from the preceding stack
frame.
Output
This example output shows all registers.
ICODE
The ICODE command displays TNS/R native instructions.
RISC instructions from a previous source line are annotated with a “-” and RISC
instructions from proceeding lines are annotated with a “+”. Lines containing RISC
instructions also contain the source file line number that the instruction is for.
-PROGRAM-DISPLAY REGISTER ALL
$PC: 1879048880 $HI: 926 $LO: 3976303904 VFP: 1342177056
$0 0 $AT: 134217732 $VO: 0 $V1: 1
$4: $A0 0 $A1 0 $A2 134230564 $A3: 92
$8: $T0 134230560 $T1 4 $T2 66 $T3 1879082720
$12: $T4 65043 $T5 262144 $T6 0 $T7 0
$16: $S0 4294967295 $S1 4294967295 $S2 4294967295 $S3 4294967295
$20: $S4 4294967295 $S5 4294967295 $S6 4294967295 $S7 4294967295
$24: $T8 134230656 $T9 2 $K0 2803083027 $K1 2803083027
$28: $GP 134254384 $SP 1342177016 $FP 4294967295 $RA 1879082720
-PROGRAM-ICODE AT #PROC FOR 3 STATEMENTS
#10
10.000 %h700002B0: addiu $sp,$sp, -32
10.000 %h700002B4: sw $4,32($sp)
10.000 %h700002B8: sw $5,36($sp)
#17
17.000 %h700002BC: lw $15,36($sp)
17.000 %h700002C0: lw $14,32($sp)
- 10.000 %h700002B4: sw $6,40($sp)
17.000 %h700002C8: lw $25,40($sp)
- 10.000 %h700002CC: sw $7,44($sp)
17.000 %h700002D0: lw $9,44($sp)
17.000 %h700002D4: add $24,$14,$15
+ 18.000 %h700002D8: sw $11,$48($sp)
17.000 %h700002DC: add $8,$24,$25
- 10.000 %h700002E0: sw $31,28$sp)
17.000 %h700002E4: add $10,$8,$9