## Disassembly View

When debugging your application, the Disassembly view shows the loaded program as assembler instructions. When you use the Disassembly view, you can do the following tasks:

- Step through the disassembly instructions of your program using the Instruction Stepping Mode () icon in the Debug view (Figure 1).
- Reposition the PC using the various move commands (Figure 1) by first selecting the line to move to, then select the command from the context menu.
- Set breakpoints at the start of any assembler instruction by right-clicking the left hand column to view the context menu options (Figure 2)

Figure 1 shows the Dissassembly view and the PC context menu that appears when you right-click in the data pane. Right-clicking the left border opens the breakpoint context menu.

Figure 1 - Repositioning the PC in the Disassembly view

Figure 2 - Setting Breakpoints in the Disassembly view

##### Table 1. Disassembly view —context menu

Item | Icon | Explanation
--- | --- | ---
Run to Line |  | Select Run to Line to execute the program from the currently executed line (the green line) to the selected line (the blue line).
Move to Line |  | Select Move to Line to move the program counter to the selected line (the blue line) skipping all intermediate lines but not resume execution. This enables you to skip suspect code and continue stepping through your program. WARNING Using this command can leave a program in an unstable state. Use at your own risk.
Resume at Line |  | Select Resume at Line to begin program execution at the selected line (the blue line), skipping all lines between it and the currently executed line (the green line). WARNING Using this command can leave a program in an unstable state. Use at your own risk.
Toggle Breakpoint |  | Right-click in left-hand column of the Disassembly view and select this option to toggle the breakpoint state between setting and removing the breakpoint.
Disable/Enable Breakpoint |  | Right-click in left-hand column of the Disassembly view and select the breakpoint option shown as determined by the current state of the breakpoint.
Breakpoint Properties |  | Select this option to open the Breakpoint Properties dialog.

#### Opening the Disassembly view

- Select Window > Show View > Disassembly

> OR

- Click the Instruction Stepping Mode () icon in the Debug view

  A Disassembly view appears in the current perspective.

##### Related reference

- Breakpoints
- Repositioning the Program Counter