Hi, I need to be able to access structure members in inline ASM without using numeric memory offsets as it is a pain in the (you know what) to be look at the code a little later and figure out what is going on and I have to change the offsets whenever I make changes to the structure. I am using MSVC++ 6.0, I was wondering if there was a way to do it like MASM for example:
^^ IS there a way that I can do the above in VC++ 6.0?
The structure *IS* defined within the C source code.
assume esi:PTR SN76489
mov eax,[esi].period
assume esi:NOTHING
^^ IS there a way that I can do the above in VC++ 6.0?
The structure *IS* defined within the C source code.
try:
__asm
{
mov eax, (SN76489 PTR [esi]).period
...
}
I think assume doesnt work.try:
__asm
{
mov eax, (SN76489 PTR [esi]).period
...
}
I think assume doesnt work. IT didnt work :'(
WNDCLASSEX wc;
__asm
{
mov ecx, wc.cbSize
lea ebx,wc
mov eax,[ebx]WNDCLASSEX.cbSize
}
notice that there's no dot after ]
mov ecx, WNDCLASSEX.z :alright:
ah and that (except if I change "z" to stg else) works :) but I didn't see it in my MSDN :confused:
just a sample :grin:
Thanks, it worked, sweet! :D