mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-06 23:07:55 +02:00
19 lines
310 B
ObjectPascal
19 lines
310 B
ObjectPascal
{ %CPU=i8086,i386,x86_64 }
|
|
{ %fail }
|
|
|
|
{ Tests the 'Cannot override ES segment' error message }
|
|
|
|
{$asmmode att}
|
|
|
|
begin
|
|
asm
|
|
{$if defined(cpui8086)}
|
|
movsb (%si), %ds:(%di)
|
|
{$elseif defined(cpui386)}
|
|
movsb (%esi), %ds:(%edi)
|
|
{$elseif defined(cpux86_64)}
|
|
movsb (%rsi), %fs:(%rdi)
|
|
{$endif}
|
|
end;
|
|
end.
|