Re: asm grep



Frank Kotler <fbkotler@xxxxxxxxxxx> wrote in part:
The option I *use* most, on the real grep, is "i", and that
doesn't sit well with rep cmpsb...

Nor REP SCASB. So do it the long way and mask the case bit
if that is acceptable for non-alpha too: [untested]

next:
mov al, buffer[esi]
inc esi
cmp esi, edx ; num of chars read
jnc done

and al, bl ; mask
cmp al, cl ; anchor target
jnz next

[compare rest of string]
done:
[reload buffer]


-- Robert

.