Rev 255 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
255 | heavyiron | 1 | ;----------------------------------------------------------- |
2 | ;-------find simvole in string------------------------------ |
||
3 | ;----------------------------------------------------------- |
||
6341 | IgorA | 4 | |
5 | ;input: |
||
6 | ;eax=string |
||
7 | ;ebx=symvol |
||
255 | heavyiron | 8 | find_symvol: |
9 | mov esi,eax |
||
10 | next_symvol: |
||
6341 | IgorA | 11 | cmp byte[eax],bl |
255 | heavyiron | 12 | je symvol_fined |
13 | inc eax |
||
14 | jmp next_symvol |
||
15 | |||
16 | symvol_fined: |
||
17 | sub eax,esi |
||
18 | |||
19 | ret |