mirror of
https://github.com/reactos/reactos.git
synced 2024-09-21 02:01:15 +00:00
a3623f23de
- Make all x86assembly ML compatible - Remove memcpy, it was duplicated from memmove, copy the label instead - Guard some code against compilation on msvc, as these functions are intrinsics on MSVC and cannot be implemented - Fix some x64 assembly (don't modify stack below rsp) svn path=/branches/cmake-bringup/; revision=49421
31 lines
312 B
C
31 lines
312 B
C
/* $Id$
|
|
*/
|
|
|
|
#include "tchar.h"
|
|
#include <reactos/asm.h>
|
|
|
|
PUBLIC _tcscpy
|
|
.code
|
|
|
|
_tcscpy:
|
|
push esi
|
|
push edi
|
|
mov edi, [esp + 12]
|
|
mov esi, [esp + 16]
|
|
cld
|
|
|
|
.L1:
|
|
_tlods
|
|
_tstos
|
|
test _treg(a), _treg(a)
|
|
jnz .L1
|
|
|
|
mov eax, [esp + 12]
|
|
|
|
pop edi
|
|
pop esi
|
|
ret
|
|
|
|
END
|
|
/* EOF */
|