The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: ragdog on November 12, 2008, 01:03:50 PM

Title: Findstring with wildcards problem
Post by: ragdog on November 12, 2008, 01:03:50 PM
Hi

I have a little bug in this routine

This search for a string in a file and uses wildcards.
If the string present in the file works this fine also with wildcards.
If the string not present crash this routine here

.while byte ptr [eax] == dl




.while byte ptr [eax] == dl
inc ecx
mov dl, byte ptr [ecx]
inc eax
dec edi
je found
cmp byte ptr [WildCard],dl
je @b
.endw




SOLVED

Greets