2007-03-15 10:58:19 +00:00
|
|
|
/* $Id$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "tchar.h"
|
2010-11-02 00:06:33 +00:00
|
|
|
#include <reactos/asm.h>
|
2007-03-15 10:58:19 +00:00
|
|
|
|
2010-11-02 00:06:33 +00:00
|
|
|
PUBLIC _tcschr
|
|
|
|
.code
|
2007-03-15 10:58:19 +00:00
|
|
|
|
|
|
|
_tcschr:
|
2010-11-02 00:06:33 +00:00
|
|
|
push esi
|
|
|
|
mov esi, [esp + 8]
|
|
|
|
mov edx, [esp + 12]
|
|
|
|
cld
|
2007-03-15 10:58:19 +00:00
|
|
|
|
|
|
|
.L1:
|
2010-11-02 00:06:33 +00:00
|
|
|
_tlods
|
|
|
|
cmp _treg(d), _treg(a)
|
|
|
|
je .L2
|
|
|
|
test _treg(a), _treg(a)
|
|
|
|
jnz .L1
|
|
|
|
mov esi, _tsize
|
2007-03-15 10:58:19 +00:00
|
|
|
|
|
|
|
.L2:
|
2010-11-02 00:06:33 +00:00
|
|
|
mov eax, esi
|
|
|
|
_tdec(eax)
|
2007-03-15 10:58:19 +00:00
|
|
|
|
2010-11-02 00:06:33 +00:00
|
|
|
pop esi
|
|
|
|
ret
|
2007-03-15 10:58:19 +00:00
|
|
|
|
2010-11-02 00:06:33 +00:00
|
|
|
END
|
2007-03-15 10:58:19 +00:00
|
|
|
/* EOF */
|