Re: asm grep
- From: Robert Redelmeier <redelm@xxxxxxxxxxxxxxx>
- Date: Thu, 27 Dec 2007 18:36:03 GMT
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
.
- Follow-Ups:
- Re: asm grep
- From: Charles Crayne
- Re: asm grep
- References:
- asm grep
- From: Frank Kotler
- Re: asm grep
- From: Robert Redelmeier
- Re: asm grep
- From: Frank Kotler
- Re: asm grep
- From: Robert Redelmeier
- Re: asm grep
- From: Charles Crayne
- Re: asm grep
- From: Frank Kotler
- asm grep
- Prev by Date: Re: asm grep
- Next by Date: [OT] new video connection
- Previous by thread: Re: asm grep
- Next by thread: Re: asm grep
- Index(es):