/programs/other/t_edit/strlen.inc |
---|
28,7 → 28,8 |
; destroys : nothing |
;******************************************************************** |
strlen: |
push ecx edi |
push ecx |
push edi |
pushfd |
cld ; ! |
mov ecx,-1 |
39,7 → 40,8 |
sub eax,esi |
dec eax |
popfd |
pop edi ecx |
pop edi |
pop ecx |
ret |
49,7 → 51,8 |
; Copyright (c) 2009 Igor Afanasiev |
linlen: |
push ecx edi |
push ecx |
push edi |
pushfd |
cld ; ! |
mov ecx,eax |
61,7 → 64,8 |
sub eax,esi |
dec eax |
popfd |
pop edi ecx |
pop edi |
pop ecx |
ret |
;%endif |