mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-25 16:16:50 +03:00
af99f0b88d
git-svn-id: svn://kolibrios.org@255 a494cfbc-eb01-0410-851d-a64ba20cac60
20 lines
384 B
PHP
20 lines
384 B
PHP
;-----------------------------------------------------------
|
|
;-------find simvole in string------------------------------
|
|
;-----------------------------------------------------------
|
|
find_symvol:
|
|
;eax=string
|
|
;ebx=symvol
|
|
mov esi,eax
|
|
next_symvol:
|
|
xor ecx,ecx
|
|
mov cl,[eax]
|
|
cmp cl,bl
|
|
je symvol_fined
|
|
inc eax
|
|
jmp next_symvol
|
|
|
|
symvol_fined:
|
|
sub eax,esi
|
|
|
|
ret
|