I have a problem. My ASM code works fine when included as part of main, but when I make a function that takes a reference it doesn't work. What I mean is:
Code:// The following function generates no errors,
// but when called does not effect the variable passed.
// If the __asm lines are put in the main program, however
// and used with integer num, it works.
// How do I use assembly lines to access variables passed
// to functions? =|
void zapit (int &num) {
__asm mov ecx, [num]
__asm xor ecx, ecx
__asm mov [num], ecx
}
