projects
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[CLT2012]
[reactos.git]
/
lib
/
sdk
/
crt
/
string
/
i386
/
tcsrchr.inc
1
/* $Id: tcsrchr.inc 49591 2010-11-15 01:29:12Z tkreuzer $
2
*/
3
4
#include "tchar.h"
5
#include <asm.inc>
6
7
PUBLIC _tcsrchr
8
.code
9
10
_tcsrchr:
11
push esi
12
mov esi, [esp + 8]
13
mov edx, [esp + 12]
14
15
cld
16
mov ecx, _tsize
17
18
.L1:
19
_tlods
20
cmp _treg(d), _treg(a)
21
jne .L2
22
mov ecx, esi
23
24
.L2:
25
test _treg(a), _treg(a)
26
jnz .L1
27
28
mov eax, ecx
29
_tdec(eax)
30
pop esi
31
ret
32
33
END
34
/* EOF */