#include #include int oldvalor = 4; int newvalor = 0; char formato[] = "The new value is : %d\n"; void main( void ) { __asm { mov eax, oldvalor add eax, 10 push eax mov newvalor, eax mov eax, offset formato push eax call printf pop ebx pop ebx } //printf("The new value is : %d\n", newvalor); while ( true ) { Sleep(1000); } }