mirror of
https://github.com/reactos/reactos.git
synced 2024-10-22 05:46:19 +00:00
30 lines
269 B
C
30 lines
269 B
C
|
/* $Id$
|
||
|
*/
|
||
|
|
||
|
#include "tchar.h"
|
||
|
|
||
|
.globl _tcslen
|
||
|
|
||
|
_tcslen:
|
||
|
push %edi
|
||
|
mov 0x8(%esp), %edi
|
||
|
xor %eax, %eax
|
||
|
test %edi,%edi
|
||
|
jz _tcslen_end
|
||
|
|
||
|
mov $-1, %ecx
|
||
|
cld
|
||
|
|
||
|
repne _tscas
|
||
|
|
||
|
not %ecx
|
||
|
dec %ecx
|
||
|
|
||
|
mov %ecx, %eax
|
||
|
|
||
|
_tcslen_end:
|
||
|
pop %edi
|
||
|
ret
|
||
|
|
||
|
/* EOF */
|