GetCurrentEIP()

Syntax

Result = GetCurrentEIP(Number of Instructions)
Description
Get current Instruction pointer in memory (or with offset of instructions).

Example:
  LoopCnt=0

  ;Where are we ?       ; get current address in memory
  EIP=GetCurrentEIP(1)  ;
  ;X - EIP points to this line

  ;a simple DebugMessage
  Debug "Loop "+Str(LoopCnt)

  If LoopCnt<10  ;we have less than 10 loop counts, so
    LoopCnt+1    ;...add one
    GoToEIP(EIP) ;...and goto last address
  EndIf
  Debug "Ready!"

Supported OS

Windows

<- DisASMCommand() - OnError Index - GetDisASMString() ->