tb0320.pp 447 B

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