tb0270.pp 375 B

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