GetDisASMString()

Syntax

ASMCommand$ = GetDisASMString()
Description
Gets the ASM command from the given address in the call to DisASMCommand()

Example:
  Debug "Mini-Disassembler!"
  Debug "type in your Code between the 2 Labels START_C: and END_C: "
  Debug "and let the ErrorLibrary disassemble for you"

  Pointer=?START_C
  If Pointer<>?END_C
    SetClipboardText("")
    Repeat
      ThisPosition=Pointer
      Pointer=DisASMCommand(Pointer)
      Debug Hex(ThisPosition)+" - " + GetDisASMString()
      SetClipboardText(GetClipboardText()+GetDisASMString()+Chr(13)+Chr(10))
    Until Pointer>=?END_C
  EndIf

  End

  START_C:
    Null.l=0                  ;1.Error : Division by zero
    Ergebnis.l = 123 / Null

    !INT 3                    ;2.Error: Breakpoint in ASM

    !NOP                      ;Also NOPS are disassembled 

    PeekL(99)                 ;3.Error: Read a value from an invalid memory address
    SetErrorNumber(9)         ;4.Error: Manually set an error number
  END_C:

Supported OS

Windows

<- GetCurrentEIP() - OnError Index - GetErrorAddress() ->