Re: checking string in string
- From: Dirk Wolfgang Glomp <dirk@xxxxxxxxxxxxxxxxxxx>
- Date: Sun, 24 Jun 2007 13:06:12 +0200
sonic schrieb:
Hi!
How to check if my dword from param txt1:dword is in sth like that "TXT2 db
50 dup(0)" ?
Eg now txt1 is "ab" and txt2 is "hhaBababggg". How to check if txt1 is in
txt2... I only need to know if it is, not how many times.
How to make this non case sensitive? How to make all letters lower?
1)
Load the adress of TXT2 to an adressregister. Load "ab" to an other register.
2)
Load a word from TXT2 to a third register. Change these ASCIIs to lower case
and compare it with the second register(with "ab"). Make a conditional jump
if the result is true. Than increase the adressregister and check if the end
of TXT2 is arrived(maybe by decreasing a counter-register), else loop and
repeat to 2).
Dirk
.
- Follow-Ups:
- Re: checking string in string
- From: Betov
- Re: checking string in string
- References:
- checking string in string
- From: sonic
- checking string in string
- Prev by Date: Re: webcamasm
- Next by Date: Re: checking string in string
- Previous by thread: checking string in string
- Next by thread: Re: checking string in string
- Index(es):