Hey, I am relatively new to MASM32. Even so, I have managed to construct some fairly decent programs in MASM32 even though I only know very few opcodes and registers b/c I have experience in Win32 C++ programming and I was able to interpret what the ASM code was doing.

This being so, I have a few questions about MASM32 and it's commands.

Like, I see 'ADDR' being put behind a variable sometimes, I have to use it sometimes and I only know that I have to use it when the compiler doesn't let me compile the code.

When and why do I place 'ADDR' behind a variable, but in the next line of code I will use the variable again and I won't have to place 'ADDR' before it? What does 'ADDR' stand for?

Also, placing 'OFFSET' behind a variable instead of 'ADDR' seams to have the same effect, why is this?

Thanks in advance for any replies.

Posted on 2005-01-12 22:23:25 by BBS
ADDR stands for address and is used to ge the address of a variable. Its like using & in c++ so that you have a pointer.
offset is used for the same thing the difference is that addr can be used in an invoke statement to get the address of variables which are on the stack (local variables).
Posted on 2005-01-12 22:34:54 by QuantumMatrix1024
Thanks for the reply. This clears alot of things up for me.

Posted on 2005-01-12 22:38:21 by BBS