SourcePoint Intel Help

Table of Contents

Code Window Introduction

Select View|Code on the menu bar or click on the Code icon on the icon toolbar to access the Code window. The Code window is used to view code at specific addresses, run the processor, and track program execution. Various functions include setting and viewing breakpoints, viewing Disassembly, Mixed, and Source modes, and viewing existing data values in registers and memory locations. Multiple Code windows can be open simultaneously.

 

Code window

Note: You can cursor to addresses before the IP only if source code and/or symbols are loaded.

Display Columns

The Code window has four line-oriented display fields: Address, Object Code, Mnemonic, and Operand.

Address. The Address field contains the code segment (CS) selector and the code segment offset (EIP) for each instruction's address.

Object Code. The Object Code field contains the instruction's object code as read from memory. This field is toggled on and off using the Code Bytes menu item from Code|Display|Code Bytes on the menu bar.

Mnemonic. The Mnemonic field contains the instruction mnemonic as disassembled from memory.

Operand. The Operand field contains the operands involved in the instruction.

Dialog Bar

Address text box. In the lower left-hand corner of the window, any valid code address can be entered to disassemble that location in memory.

Code View drop down list box. In the box to the right of the Address text box is the Code View drop down list box. Choices are Disassembly, Mixed, and Source. Disassembly simply reads memory and displays the opcodes and data as mnemonics and operands. A Mixed selection displays a mixed source code/memory disassembly. A Source selection displays the source code only.

Go cursor button. This function sets a temporary breakpoint at the cursor location in the Code window and starts a processor.

Set/Clear Break button. This button sets or clears the execution breakpoint at the cursor location in the Code window.

Track IP check box. If Track IP is checked, the Code window always displays code at the processor instruction pointer (IP). If the processor stops beyond the address range currently visible in the Code window, the Code window is redrawn showing the code at the new IP. If  Track IP is not enabled, the Code window retains its contents and address range, and a new Code window is opened when the processor stops if no other Code window with Track IP enabled is already opened. In effect, if Track IP is enabled, the window always shows a range of code that includes the IP. If it is disabled, you can step through code until the IP is not in the range of code visible to the Code window without the display changing to the new IP location.

View IP button. This button displays the code at the current instruction pointer location.

Refresh button. Click on the Refresh button to update the Code window by re-reading from target memory the instructions in the current address range. This menu item is useful when code resides in RAM and may be subject to change.

Finding Source Code

If SourcePoint cannot find your source code, a Find Source dialog box displays that lets you point SourcePoint to your source code.

Find Source dialog box