2.3.95. PRINTDSM

Displays disassembled target memory at a specified address or between a range of addresses.


PRINTDSM { address | addressrange }



The address containing the line of code to be disassembled. For example, 0x8000.


The start and end addresses containing the code to be disassembled. For example, 0x8000..0x8FFF specifies addresses in the address range 0x8000 to 0x8FFF.


The PRINTDSM command prints disassembled target memory at the specified address, or in the specified address range:

  • if you are using the GUI, then output is sent to the Cmd tab of the Output view

  • if you have a journal file open, the disassembly is also sent to that file.

The output is in the same format as the disassmbly in the Disassembly tab of the Code window. Use the DISASSEMBLE command to change the format.


This command requires that RealView Debugger is connected to a debug target.


The following examples use the dhrystone image to show how to use PRINTDSM:

printdsm 0x8000..0x800F

Prints a disassembled version of the code from 0x8000 to 0x800F, for example:

   RW:00008000 EA000000  B        __scatterload_rt2       <0x8008>
   RW:00008004 EA00069C  B        __rt_entry              <0x9a7c>
   RW:00008008 E28F0028  ADR      r0,{pc}+0x30 ; 0x8038
   RW:0000800C E8900C00  LDM      r0,{r10,r11}
printdsm main..+16

Prints a disassembled version of the 16 bytes of code starting from the address of function main, for example:

   RW:00008200 E92D47F0  PUSH     {r4-r10,r14}
   RW:00008204 E24DD070  SUB      r13,r13,#0x70
   RW:00008208 E3A00030  MOV      r0,#0x30
   RW:0000820C EB00040E  BL       malloc                  <0x924c>

See also

Copyright © 2002-2011 ARM. All rights reserved.ARM DUI 0175N