Dbx 1024 User's Guide Page 97

  • Download
  • Add to my manuals
  • Print
  • Page
    / 158
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 96
Examining and Changing Register Values
83
Memory and Disassembling Code” on page 85). If $regstyle is set to 0, then
dbx uses the alternate form of the register name (for example, “zero” instead
of “r0,” and “t1” instead of “r9”); if $regstyle is anything other than 0, the
machine names are used (“r0” through “r31”).
Printing Register Values
Use the printregs command to print the values stored in all registers.
The base in which the register values are displayed depends on the values of
the dbx variables $octints and $hexints. By default, dbx prints the register
values in decimal. You can set the output base to octal by setting the dbx
variable $octints to a nonzero value. You can set the output base to
hexadecimal by setting the dbx variable $hexints to a nonzero value. If you
set both $octints and $hexints to nonzero values, $hexints takes precedence.
To examine the register values in hexadecimal, enter the following:
(dbx) set $hexints = 1
(dbx) printregs
r0/zero=0x0 r1/at=0x19050
r2/v0=0x8 r3/v1=0x100120e0
r4/a0=0x4 r5/a1=0xffffffad78
r6/a2=0xffffffad88 r7/a3=0x0
r8/a4=0x10 r9/a5=0x20
r10/a6=0x0 r11/a7=0xfbd5990
r12/t0=0x0 r13/t1=0x0
r14/t2=0x65 r15/t3=0x0
r16/s0=0x1 r17/s1=0xffffffad78
r18/s2=0xffffffad88 r19/s3=0xffffffaf70
r20/s4=0x0 r21/s5=0x0
r22/s6=0x0 r23/s7=0x0
r24/t8=0x0 r25/t9=0x10001034
r26/k0=0x0 r27/k1=0x20
r28/gp=0x1001a084 r29/sp=0xffffffaca0
r30/s8=0x0 r31/ra=0x1000110c
mdhi=0x0 mdlo=0xe0
cause=0x24 pc=0x10001050
fpcsr=0x0
f0=0.0000000e+00 f1=0.0000000e+00 f2=0.0000000e+00
f3=0.0000000e+00 f4=0.0000000e+00 f5=0.0000000e+00
Page view 96
1 2 ... 92 93 94 95 96 97 98 99 100 101 102 ... 157 158

Comments to this Manuals

No comments