2007-03-15 10:58:19 +00:00
|
|
|
/* $Id$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "tchar.h"
|
2010-11-15 01:29:12 +00:00
|
|
|
#include <asm.inc>
|
2007-03-15 10:58:19 +00:00
|
|
|
|
2010-11-02 00:06:33 +00:00
|
|
|
PUBLIC _tcscpy
|
|
|
|
.code
|
2007-03-15 10:58:19 +00:00
|
|
|
|
|
|
|
_tcscpy:
|
2010-11-02 00:06:33 +00:00
|
|
|
push esi
|
|
|
|
push edi
|
|
|
|
mov edi, [esp + 12]
|
|
|
|
mov esi, [esp + 16]
|
|
|
|
cld
|
2007-03-15 10:58:19 +00:00
|
|
|
|
2007-10-19 23:21:45 +00:00
|
|
|
.L1:
|
2010-11-02 00:06:33 +00:00
|
|
|
_tlods
|
|
|
|
_tstos
|
|
|
|
test _treg(a), _treg(a)
|
|
|
|
jnz .L1
|
2007-03-15 10:58:19 +00:00
|
|
|
|
2010-11-02 00:06:33 +00:00
|
|
|
mov eax, [esp + 12]
|
2007-03-15 10:58:19 +00:00
|
|
|
|
2010-11-02 00:06:33 +00:00
|
|
|
pop edi
|
|
|
|
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 */
|