1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| |
void main (void)
{
char string1[]= {"Hello there"};
char string2[]= {"Hello jerky"};
int len = sizeof(string1);
__asm
{
mov ecx,len
cld
lea esi, string1
lea edi, string2
repe cmpsb
jne notequ
nop
notequ: nop
}
return;
} |