Sample:
#include <stdio.h>
#include <ctype.h>
int main(void)
{
unsigned char *p1, *p2, *p;
__asm { lbl1: mov eax,lbl1
mov p1, eax
}
printf("Hello!\n");
// If you make main a void, you also get the
// return code printed...
__asm { lbl2: mov eax,lbl2
mov p2, eax
}
for(p=p1; p<=p2; p++)
{
printf ("Byte @ 0x%p = %0.2x - '%c'\n", p, *p, isalpha(*p) ? *p : '.' );
}
return 0;
}