disassemble

Disassembles the instructions of the specified memory block.

Syntax

disassemble

disassemble pc|[<ms>:]<addr> [<count>]

disassemble reset

disassemble [<ms>:]<a1>{..<a2>|#<n>}

Parameter

[none]

With no options, the next block of instructions is listed. After a target stop event, the next block starts at the PC.

[<ms>:]<addr>

Target address in hex. On targets with multiple memory spaces, a memory space id can be specified.

pc

The current program counter.

<count>

Number of instructions to be listed.

reset

Reset the next block to the PC and the instruction count to one screen.

<a1>{..<a2>|#<n>}

Specifies a range of memory either by two endpoints, <a1> and <a2> , or by a startpoint and a count, <a1> and <n> .

Examples

The following table lists and defines examples of the disassemble command.

Table 1. disassemble Command-line debugger command - Examples
Command Description
disassemble Lists the next block of instructions.
disassemble reset Resets the next block to the PC and the instruction count to one screenful.
disassemble pc Lists instructions starting at the PC.
disassemble pc 4 Lists 4 instructions starting at the PC. Sets the instruction count to 4.
disassemble 1000 Lists instructions starting at address 0x1000.
disassemble p:1000 4 Lists 4 instructions from memory space p, address 1000. Sets the instruction count to 4.