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