mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 16:59:44 +02:00
25 lines
375 B
ObjectPascal
25 lines
375 B
ObjectPascal
{ %CPU=i386 }
|
|
{ Old file: tbs0316.pp }
|
|
{ }
|
|
|
|
{$asmmode intel}
|
|
|
|
procedure test(b : longint); assembler;
|
|
type
|
|
splitlong = packed record b1, b2, b3, b4 : Byte; end;
|
|
asm
|
|
mov splitlong(b).b2, al
|
|
end;
|
|
|
|
{$asmmode att}
|
|
|
|
procedure test2(b : longint); assembler;
|
|
type
|
|
splitlong = packed record b1, b2, b3, b4 : Byte; end;
|
|
asm
|
|
movb splitlong(b).b2, %al
|
|
end;
|
|
|
|
begin
|
|
end.
|