mirror of
https://github.com/reactos/reactos.git
synced 2024-09-22 18:45:51 +00:00
ab465e66e3
Rename a number of .h files that contain assembly code into .inc to better reflect their purpose svn path=/branches/cmake-bringup/; revision=49566
35 lines
367 B
PHP
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 */
|