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