update for HEAD-2003091401
[reactos.git] / lib / string / i386 / tcscpy.h
diff --git a/lib/string/i386/tcscpy.h b/lib/string/i386/tcscpy.h
new file mode 100644 (file)
index 0000000..7b7a0a9
--- /dev/null
@@ -0,0 +1,27 @@
+/* $Id$
+ */
+
+#include "tchar.h"
+
+.globl _tcscpy
+
+_tcscpy:
+ push %esi
+ push %edi
+ mov  0x0C(%esp), %edi
+ mov  0x10(%esp), %esi
+ cld
+
+.L1:   
+ _tlods
+ _tstos
+ test %_treg(a), %_treg(a)
+ jnz  .L1
+
+ mov  0x0C(%esp), %eax
+
+ pop  %edi
+ pop  %esi
+ ret
+
+/* EOF */