tb0270.pp 361 B

1234567891011121314151617181920212223
  1. { Old file: tbs0316.pp }
  2. { }
  3. {$asmmode intel}
  4. procedure test(b : longint); assembler;
  5. type
  6. splitlong = packed record b1, b2, b3, b4 : Byte; end;
  7. asm
  8. mov splitlong(b).b2, al
  9. end;
  10. {$asmmode att}
  11. procedure test2(b : longint); assembler;
  12. type
  13. splitlong = packed record b1, b2, b3, b4 : Byte; end;
  14. asm
  15. movb splitlong(b).b2, %al
  16. end;
  17. begin
  18. end.