reactos/lib/sdk/crt/string/i386/tcsrchr.inc
Timo Kreuzer ab465e66e3 [CRT]
Rename a number of .h files that contain assembly code into .inc to better reflect their purpose

svn path=/branches/cmake-bringup/; revision=49566
2010-11-11 17:10:09 +00:00

35 lines
367 B
PHP

/* $Id$
*/
#include "tchar.h"
#include <reactos/asm.h>
PUBLIC _tcsrchr
.code
_tcsrchr:
push esi
mov esi, [esp + 8]
mov edx, [esp + 12]
cld
mov ecx, _tsize
.L1:
_tlods
cmp _treg(d), _treg(a)
jne .L2
mov ecx, esi
.L2:
test _treg(a), _treg(a)
jnz .L1
mov eax, ecx
_tdec(eax)
pop esi
ret
END
/* EOF */