blob: 95fa12dbf62a0a16356e45a5891e2a3501066bb7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{ %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.
|