blob: 1d7231664beacb1290040f29b83fc55402e6bc4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{ %cpu=i386 }
{ %OPT=-Cg- }
{$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.
|