Retro68/gcc/newlib/libc/machine/rx/memcpy.S

11 lines
223 B
ArmAsm
Raw Normal View History

2017-04-11 21:13:36 +00:00
.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