fpc/tests/test/tasm26.pp
nickysn bbc364b245 * inline asm fix for accessing record variables when using the unitname (e.g.
'mov ax, unitname.varname.fieldname')

git-svn-id: trunk@38755 -
2018-04-12 16:35:21 +00:00

26 lines
230 B
ObjectPascal

{ %CPU=i8086,i386,x86_64 }
{$IFDEF FPC}
{$MODE TP}
{$ASMMODE INTEL}
{$PIC OFF}
{$ENDIF FPC}
program tasm26;
type
t = record
a: word;
end;
var
v: t;
procedure x; assembler;
asm
mov ax, tasm26.v.a;
end;
begin
end.