mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 13:49:30 +02:00

* tw1633 test for i386 only. * removed SWI instruction in tw4722 test. It is not supported for arm-wince and do not needed for test. git-svn-id: trunk@4093 -
43 lines
531 B
ObjectPascal
43 lines
531 B
ObjectPascal
{ %fail }
|
|
{ %cpu=i386 }
|
|
|
|
{$ifdef fpc}
|
|
{$mode delphi}
|
|
{$asmmode intel}
|
|
{$endif}
|
|
|
|
type tscreen = class
|
|
x : Cardinal;
|
|
end;
|
|
type ttestobj = class
|
|
screen : tscreen;
|
|
constructor create;
|
|
function testasmcall : tscreen;
|
|
end;
|
|
|
|
var
|
|
testobj : ttestobj;
|
|
|
|
constructor ttestobj.create;
|
|
begin
|
|
asm
|
|
mov screen.x,0
|
|
end;
|
|
end;
|
|
|
|
function ttestobj.testasmcall : tscreen;
|
|
begin
|
|
asm
|
|
mov screen.x, 0
|
|
ADD screen.x, 1
|
|
end;
|
|
result := screen;
|
|
end;
|
|
|
|
|
|
begin
|
|
testobj := ttestobj.create;
|
|
testobj.testasmcall;
|
|
testobj.destroy;
|
|
end.
|