procedure TForm1.ExecMethodByName(AName: string);
var
PAddr: Pointer;
I:Integer;
begin
PAddr := MethodAddress(AName);
asm
mov edx, 30
mov ecx, 15
Add ecx,edx
push ecx
mov eax, Self
call PAddr
pop ecx
mov I, ecx
end;
ShowMessage(InttoStr(I));
//显示为45
end;