mirror of
https://github.com/reactos/reactos.git
synced 2024-09-22 18:45:51 +00:00
ab6c2ee54c
incude asm.inc instead of reactos/asm.h Fix a bug that smeaked into _chkstk svn path=/branches/cmake-bringup/; revision=49591
33 lines
307 B
PHP
33 lines
307 B
PHP
/* $Id$
|
|
*/
|
|
|
|
#include "tchar.h"
|
|
#include <asm.inc>
|
|
|
|
PUBLIC _tcslen
|
|
.code
|
|
|
|
_tcslen:
|
|
push edi
|
|
mov edi, [esp + 8]
|
|
xor eax, eax
|
|
test edi, edi
|
|
jz _tcslen_end
|
|
|
|
mov ecx, -1
|
|
cld
|
|
|
|
repne _tscas
|
|
|
|
not ecx
|
|
dec ecx
|
|
|
|
mov eax, ecx
|
|
|
|
_tcslen_end:
|
|
pop edi
|
|
ret
|
|
|
|
END
|
|
/* EOF */
|