int myVar = 42; int main() { __asm { mov eax, myVar // move the content of myVar to eax mov eax, [myVar] // move the content of myVar to eax mov eax, offset myVar // move the address of myVar to eax } }