fpc/tests/webtbs/tw2806.pp
fpc 790a4fe2d3 * log and id tags removed
git-svn-id: trunk@42 -
2005-05-21 09:42:41 +00:00

24 lines
341 B
ObjectPascal

{ %cpu=i386 }
{$ifdef fpc}{$asmmode intel}{$endif}
type
tptentry=record
l1,l2 : longint;
end;
var
piecetab : array[0..10] of tptentry;
p1,p2 : pointer;
begin
p1:=@piecetab[8];
asm
lea ecx,PieceTab+8 * type(tPTEntry)
mov p2,ecx
end;
if p1<>p2 then
begin
writeln('Error!');
halt(1);
end;
end.