SourcePoint Intel Help

Table of Contents

execution point ($)

Display or change the current execution point (CS:EIP).

Syntax

$ [=addr]

Where:

addr

is the address of the next instruction to be executed. The $ control variable is a shorthand way of referring to the LDT:CS:EIP.

Discussion

When an address including an LDT-selector, a segment-selector, and an offset is assigned to the execution point control variable, the LDT:CS:EIP register is set to that address. If an offset only is assigned to the control variable, the EIP is changed and the LDT and CS remain the same.

Caution: When you change the execution address with the execution point control variable, your disruption of the normal program flow can invalidate the run-time stack.

Examples 1

To display the current execution point:

Command input:

$

Result:

0008:0030D611

Example 2

To change the current execution point to the main procedure in the p_main module:

Command input:

$=:p_main.main

Example 3

To hand-patch a test case at the address 0x0008:000f:000005ff:

Command input:

$ = 0x0008:000f:000005ff
asm $ = "mov ax,word ptr [0]", "mov ebx,eax"