int main() { __asm { mov eax, 1 ; // EAX=1 mov edx, 2 ; // EDX=2 xchg eax, edx ; // EDX=1, EAX=2 } return 0; }