这段文本的意思是:如何将汇编语言转换为纯Delphi代码?我无法编译需要GraphicEx的组件,因为JPG单元中的内联汇编不支持64位。
建议您使用其他图片处理库或者升级到支持64位的GraphicEx版本。
function __ftol: Integer;
var
f: double;
begin
asm
lea eax, f // BC++ passes floats on the FPU stack
fstp qword ptr [eax] // Delphi passes floats on the CPU stack
end;
Result := Trunc(f);
end;