tb0320.pp 403 B

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