tb0144.pp 297 B

12345678910111213141516171819202122
  1. { Old file: tbs0174.pp }
  2. { Asm, offsets of fields are not possible yet OK 0.99.9 (PFV) }
  3. {$ASMMODE ATT}
  4. type
  5. tobj=object
  6. l : longint;
  7. end;
  8. var
  9. t : tobj;
  10. procedure kl;assembler;
  11. asm
  12. movl tobj.l,%eax // tobj.l should return the offset of l in tobj
  13. end;
  14. begin
  15. end.