tw0892.pp 230 B

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