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