blob: 0f8278017c363fdf8d8d6e6008d22058e039f83d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/* strcpy implementation for SUPERH
*
* Copyright (C) 2009 STMicroelectronics Ltd.
*
* Author: Giuseppe Cavallaro <peppe.cavallaro@st.com>
*
* Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
*/
/*
char *strcpy(char *dest, const char *src);
*/
#include <sysdep.h>
ENTRY(strcpy)
mov r4,r2
1:
mov.b @r5+,r1
tst r1,r1
mov.b r1,@r2
bf/s 1b
add #1,r2
rts
mov r4,r0
END(strcpy)
libc_hidden_def (strcpy)
|