Disassembly Window

## 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 stopped at a breakpoint.

Figure 1 - Disassembly view

Figure 2 shows the context menu that appears when you right-click in the Dissassembly pane. Right-clicking the left border opens the breakpoint context menu in Figure 3.

Figure 2 - Disassembly pane context menu

##### Table 1. Disassembly pane — 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.
ABLD |  | Use the ABLD menu option to invoke an specific abld command on the selected project or file.
Freeze Exports |  | Calls the appropriate abld command to generate a .def file.
Build All Configurations |  | Click Build All Configurations to build all enabled build configurations in the current project.
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.

Figure 3 - Setting Breakpoints in the Disassembly view

#### 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