summaryrefslogtreecommitdiffstats
path: root/newlib/libc/machine/rx/memcpy.S
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/machine/rx/memcpy.S')
-rw-r--r--newlib/libc/machine/rx/memcpy.S10
1 files changed, 10 insertions, 0 deletions
diff --git a/newlib/libc/machine/rx/memcpy.S b/newlib/libc/machine/rx/memcpy.S
new file mode 100644
index 000000000..3e0d50001
--- /dev/null
+++ b/newlib/libc/machine/rx/memcpy.S
@@ -0,0 +1,10 @@
+ .file "memcpy.S"
+
+ .section .text
+ .global _memcpy
+ .type _memcpy,@function
+_memcpy:
+ mov r1, r4 ; Save a copy of DEST
+ smovf ; Copy R2 (source) to R1 (dest). Stop after R3 bytes.
+ mov r4, r1 ; Return DEST
+ rts