Hi people there is a way that I can access the pointer to a member of the structure directly from the assembler of strings, I tried this
procedure test(eu:PImageDosHeader);assembler;
asm
push eu._lfanew
end;
It will not 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 I can access the structure via a pointer in inline asm? it's a matter of code optimization
source
share