5 .type _memcpy,@function
7 #ifdef __RX_DISALLOW_STRING_INSNS__
8 /* Do not use the string instructions - they might prefetch
9 bytes from outside of valid memory. This is particularly
10 dangerous in I/O space. */
12 ;; FIXME: It would be more space efficient to just branch to _memmove...
14 cmp #0, r3 ; If the count is zero, do nothing
17 mov r1, r14 ; Save a copy of DEST
26 mov r1, r4 ; Save a copy of DEST
27 smovf ; Copy R2 (source) to R1 (dest). Stop after R3 bytes.
28 mov r4, r1 ; Return DEST
31 .size _memcpy, . - _memcpy