[讨论]Delphi中内嵌ASM
Delphi中内嵌ASM:
procedure sh(ss:string);
begin
showmessage(ss);
end;
procedure TForm1.Button1Click(Sender: TObject);
var
s:string;
begin
s := 'hello!';
asm
lea edx,s
call sh
end;
end;
上面有什么问题>?
Delphi中内嵌ASM:
procedure sh(ss:string);
begin
showmessage(ss);
end;
procedure TForm1.Button1Click(Sender: TObject);
var
s:string;
begin
s := 'hello!';
asm
lea edx,s
call sh
end;
end;
上面有什么问题>?
我要的就是寄存器的方式
调用API才用stdcall