fpc/tests/test/tasm13f.pp
2017-10-14 00:48:46 +00:00

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.