mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-11 17:44:09 +03:00
1402c59305
git-svn-id: svn://kolibrios.org@1408 a494cfbc-eb01-0410-851d-a64ba20cac60
25 lines
508 B
ArmAsm
25 lines
508 B
ArmAsm
# strcpy() Author: Kees J. Bot
|
|
# 1 Jan 1994
|
|
# char *strcpy(char *s1, const char *s2)
|
|
# Copy string s2 to s1.
|
|
#
|
|
|
|
.intel_syntax
|
|
|
|
.global _strcpy
|
|
|
|
.text
|
|
.align 16
|
|
_strcpy:
|
|
push ebp
|
|
mov ebp, esp
|
|
push esi
|
|
push edi
|
|
mov ecx, -1 # Unlimited length
|
|
call _strncpy # Common code
|
|
mov eax, [8+ebp] # Return s1
|
|
pop edi
|
|
pop esi
|
|
pop ebp
|
|
ret
|