#include <iostream>
using std::endl;
using std::cin;
using std::cout;
int main( )
{
int A( 10 ), b( 0 );
__asm
{
MOV EAX, A ; Get the value from 'A'
MOV EAX, B ; Get the value from 'B'
}
// Print 'B' to see if the move was successful...
cout << B << endl;
cin.get( );
return 0;
}
Now, I tried to transfer the value of A to B using assembly, but I couldn't manage it. Does anybody know how to do this?
Additional notes:
The program compiles without errors or warnings.