mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-17 02:07:13 +02:00

that start with a minus in the intel assembler reader (mantis #15843) git-svn-id: trunk@15041 -
22 lines
289 B
ObjectPascal
22 lines
289 B
ObjectPascal
{ %opt=-Cg- }
|
|
{ %cpu=i386 }
|
|
|
|
{$asmmode intel}
|
|
var
|
|
a: array[0..3] of byte;
|
|
l: longint;
|
|
begin
|
|
a[0]:=1;
|
|
a[1]:=2;
|
|
a[2]:=3;
|
|
a[2]:=4;
|
|
asm
|
|
lea ecx,[a]
|
|
inc ecx
|
|
movzx eax, byte ptr[ecx-1+1] // bug in this line (-2)
|
|
mov [l],eax
|
|
end;
|
|
if l<>2 then
|
|
halt(1);
|
|
end.
|