Hi people is there a way i can access a pointer to a structure member directly from in line assembler i tried this
procedure test(eu:PImageDosHeader);assembler;
asm
    push eu._lfanew
end;
It won't compile but if i use this
procedure test(eu:Pointer); 
var   
 xx:TImageDosHeader;
 begin    
 xx:=TImageDosHeader(eu^);  
 asm
     push xx._lfanew
 end;
 end;
It works great.Any idea how can i access a structure trough a pointer in inline asm? is a matter of optimizing the code
Yet another workaround:
procedure test(eu:PImageDosHeader);
asm
    push eu.TImageDosHeader._lfanew
end;
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With