{$asmmode intel}type t_point = record x,y : integer; end; procedure test(SrcPoint: t_point);asm mov ecx , [SrcPoint.x] //errorend;
Afaik you need to pass the type name too, so srcpoint.t_point.x. But I don't use Intel style that much.
mov ecx, [SrcPoint + offset t_point.x]
t_int = record _high,_low : smallint; end; t_point = record x,y : t_int; end; procedure test(SrcPoint: t_point);asm mov ax , [SrcPoint.t_point.x.t_int._high] //Error: Error building record offsetend;