View Single Post
  #14  
Old 20-04-2007, 01:48
TippeX's Avatar
TippeX TippeX is offline
zeroes and ones.....
 
Join Date: Jan 2003
Posts: 3,842
Thanks: 2
Thanked 33 Times in 23 Posts
TippeX is on a distinguished road
Quote:
Originally Posted by کunβeam View Post
Hmm, I would still have to go through all the string Oh, and how do I detect the boundaries ? I mean, in asm :]
check:

cmp byte ptr [eax+13], 'e'
jne advancecheck

cmp [eax+14], 'ymen'
jne somewhere

advancecheck:

cmp byte ptr [eax+14], 00h
je outofhere

inc eax

jmp check

outofhere:

; didnt find the string, so bomb...

somewhere:

cmp byte ptr [eax+14+4], 00h ; is it 'enemy' + terminator?
jne check

; do stuff cos its 'enemy'



something like that... and they're only repetitive cos u aint acting on them when i mention them ;p
__________________
bleh
DO NOT PM me with questions, leave that in the forums...ESPECIALLY if i dont know you...