函数的返回值一般保存在EAX中 举一个例子:
function Yes:int;
var
i,j:integer;
begin
asm
mov i,1
mov j,2
mov ecx,i
add i,j;
mov eax,ecx;//函数的返回值在eax中
end;
end;
细节参考Object pascal reference 的 inline assemble code 部分
function Yes:int;
var
i,j:integer;
begin
asm
mov i,1
mov j,2
mov ecx,i
add i,j;
mov eax,ecx;//函数的返回值在eax中
end;
end;
细节参考Object pascal reference 的 inline assemble code 部分
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货