2006-12-29 15:50:24 +01:00
|
|
|
;-----------------------------------------------------------
|
|
|
|
;-------find simvole in string------------------------------
|
|
|
|
;-----------------------------------------------------------
|
2016-03-15 12:39:00 +01:00
|
|
|
|
|
|
|
;input:
|
|
|
|
;eax=string
|
|
|
|
;ebx=symvol
|
2006-12-29 15:50:24 +01:00
|
|
|
find_symvol:
|
|
|
|
mov esi,eax
|
|
|
|
next_symvol:
|
2016-03-15 12:39:00 +01:00
|
|
|
cmp byte[eax],bl
|
2006-12-29 15:50:24 +01:00
|
|
|
je symvol_fined
|
|
|
|
inc eax
|
|
|
|
jmp next_symvol
|
|
|
|
|
|
|
|
symvol_fined:
|
|
|
|
sub eax,esi
|
|
|
|
|
|
|
|
ret
|