* Sync with recent trunk (r52637).
[reactos.git] / lib / sdk / crt / string / i386 / tcschr.inc
1 /* $Id$
2 */
3
4 #include "tchar.h"
5 #include <asm.inc>
6
7 PUBLIC _tcschr
8 .code
9
10 _tcschr:
11 push esi
12 mov esi, [esp + 8]
13 mov edx, [esp + 12]
14 cld
15
16 .L1:
17 _tlods
18 cmp _treg(d), _treg(a)
19 je .L2
20 test _treg(a), _treg(a)
21 jnz .L1
22 mov esi, _tsize
23
24 .L2:
25 mov eax, esi
26 _tdec(eax)
27
28 pop esi
29 ret
30
31 END
32 /* EOF */