本文整理自网络,侵删。
program Project;
{$APPTYPE CONSOLE}
function test(a, b: integer): integer; inline;begin Result := a + b;end;
begin writeln(test(5,2)); Readln;end
program p1000;{$APPTYPE CONSOLE}
var a, b: integer;
function add(a, b: integer): integer;asm add eax, edxend;
begin read(a, b); write(add(a, b)); readln; readln;end.
相关阅读 >>
Delphiwindows 下编译 exe 文件时把一个外部 txt 文件编译到 exe 里面
Delphi2010的操作界面切换到Delphi7的操作模式
Delphi tnethttpclient https忽略证书验证
更多相关阅读请进入《Delphi》频道 >>