tbs0316.pp 330 B

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