fpc/tests/webtbs/tw3298.pp
peter 455a4c24fd * %target to %cpu
git-svn-id: trunk@1296 -
2005-10-05 09:33:40 +00:00

25 lines
398 B
ObjectPascal

{ %cpu=i386 }
{ Source provided for Free Pascal Bug Report 3298 }
{ Submitted by "marco" on 2004-09-07 }
{ e-mail: }
{$mode delphi}
const
OffsetArray: array[0..3] of cardinal = ($FFFFFFFC,$FFFFFFFD,$FFFFFFFE,$FFFFFFFF);
procedure MMXUnpacked;
var
l : cardinal;
begin
asm
mov esi, offset OffsetArray[2]
mov eax,[esi]
mov l,eax
end;
if l<>$FFFFFFFE then
halt(1);
end;
begin
end.