tw0892.pp 245 B

12345678910111213141516171819
  1. { %CPU=i386 }
  2. {$asmmode intel}
  3. var
  4. i,j : longint;
  5. begin
  6. i:=56;
  7. { this should work as ss and ds have the same selector value }
  8. asm
  9. segss
  10. mov eax,dword ptr [i]
  11. mov dword ptr [j],eax
  12. end;
  13. if i<>j then
  14. Halt(1);
  15. end.