Public feed #381017

Stuff

public text v1 · immutable
Raw Edit
·published 2007-03-04 15:27 UTC
rendered paste body
#include <stdio.h>
#include <windows.h>

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);
   }
}