Original Post
hi there, ive been learning inline asm for the visual c++ 2003 compiler, and so for starters ive tried to make a very simple int swap function:
void swap_asm( int *a, int *b )
{
__asm
{
push a;
push b;
pop a;
pop b;
}
}
i call this function from my main function and in the end A and B remain with the same value, but if i define A and B localy in the swap function, it does swap the values. hows that? thanks in advance