mirror of
https://github.com/reactos/reactos.git
synced 2024-09-20 09:40:52 +00:00
c501d8112c
svn path=/branches/aicom-network-fixes/; revision=34994
35 lines
361 B
C
35 lines
361 B
C
/* $Id$
|
|
*/
|
|
|
|
#include "tchar.h"
|
|
|
|
.globl _tcsncpy
|
|
|
|
_tcsncpy:
|
|
push %esi
|
|
push %edi
|
|
mov 0x0C(%esp), %edi /* s1 */
|
|
mov 0x10(%esp), %esi /* s2 */
|
|
mov 0x14(%esp), %ecx /* n */
|
|
|
|
xor %eax, %eax
|
|
cld
|
|
|
|
.L1:
|
|
dec %ecx
|
|
js .L2
|
|
_tlods
|
|
_tstos
|
|
test %_treg(a), %_treg(a)
|
|
jnz .L1
|
|
rep _tstos
|
|
|
|
.L2:
|
|
mov 0x0C(%esp), %eax
|
|
|
|
pop %edi
|
|
pop %esi
|
|
ret
|
|
|
|
/* EOF */
|