User`s guide

Examining Memory and Disassembling Code
87
For example, to display 10 disassembled machine instructions starting at the
current address of the program counter, enter:
(dbx) $pc/10i
*[main:26, 0x400290] sw zero,28(sp)
[main:27, 0x400294] sw zero,24(sp)
[main:29, 0x400298] lw t1,28(sp)
[main:29, 0x40029c] lw t2,32(sp)
[main:29, 0x4002a0] nop
[main:29, 0x4002a4] slt at,t1,t2
[main:29, 0x4002a8] beq at,zero,0x4002ec
[main:29, 0x4002ac] nop
[main:31, 0x4002b0] lw t3,28(sp)
[main:31, 0x4002b4] nop
To disassemble another 10 lines, enter:
(dbx) ./
[main:31, 0x4002b8] addiu t4,t3,1
[main:31, 0x4002bc] sw t4,28(sp)
[main:32, 0x4002c0] lw t5,24(sp)
[main:32, 0x4002c4] lw t6,28(sp)
[main:32, 0x4002c8] nop
[main:32, 0x4002cc] addu t7,t5,t6
[main:32, 0x4002d0] sw t7,24(sp)
[main:33, 0x4002d4] lw t8,28(sp)
[main:33, 0x4002d8] lw t9,32(sp)
[main:33, 0x4002dc] nop
To examine ten 32-bit words starting at address 0x7fffc754, and print those
whose least significant byte is hexadecimal 0x19, enter:
(dbx) 0x7fffc754 / 10 L 0x19 0xff
7fffc758: 00000019
f print a single-precision real number
g print a double-precision real number
Table 7-2 (continued) Memory Display Format Codes
Format Code Displays Memory in the Format