2016-06-12 54 views
3

procedure _IntfCopySystem.pas定義調用_IntfCopy過程:如何使用Delphi的內嵌彙編

procedure _IntfCopy(var Dest: IInterface; const Source: IInterface); 

只是想知道是否有可能採用Delphi內嵌彙編調用_IntfCopy過程:

procedure Test; 
asm 
    ... 
    call _IntfCopy; 
end; 

總是導致編譯期間爲E2003 Undeclared identifier: '_IntfCopy'

一個簡單的編碼:

var a, b: IInterface; 
begin 
    a := b; 
end; 

產生德爾福彙編:

mov eax,$0042481c 
mov edx,[$00424820] 
call @IntfCopy 

但我無法找到一個方法來編寫內聯彙編德爾福通過賦值操作符做IInterface參考。

回答