tb0320.pp 388 B

1234567891011121314151617181920212223242526272829
  1. {$asmmode intel}
  2. const
  3. Count=100;
  4. type
  5. trec=record
  6. a,b : longint;
  7. end;
  8. var
  9. r : trec;
  10. begin
  11. asm
  12. xor esi,esi
  13. mov [esi+r],eax
  14. lea esi,r
  15. mov [esi+2+trec.b],eax
  16. mov trec[esi].b,eax
  17. mov eax,trec.b+2
  18. mov trec[esi].b+2,eax
  19. mov eax,Count
  20. mov eax,Count*100
  21. {$ifdef go32v2}
  22. mov fs:[0468+trec.b],eax
  23. mov fs:[046ch],eax
  24. {$endif}
  25. end;
  26. end.