reactos/lib/sdk/crt/string/i386/tcschr.inc
Timo Kreuzer ab465e66e3 [CRT]
Rename a number of .h files that contain assembly code into .inc to better reflect their purpose

svn path=/branches/cmake-bringup/; revision=49566
2010-11-11 17:10:09 +00:00

33 lines
346 B
PHP

/* $Id$
*/
#include "tchar.h"
#include <reactos/asm.h>
PUBLIC _tcschr
.code
_tcschr:
push esi
mov esi, [esp + 8]
mov edx, [esp + 12]
cld
.L1:
_tlods
cmp _treg(d), _treg(a)
je .L2
test _treg(a), _treg(a)
jnz .L1
mov esi, _tsize
.L2:
mov eax, esi
_tdec(eax)
pop esi
ret
END
/* EOF */