3 * - By John Hodge (thePowersGang)
6 * - Assembly editions of library functions
8 #include "include/assembly.h"
13 tst r2, r2 @ Check counter
14 moveq pc, lr @ Return if zero
15 ldrb r3, [r1],#1 @ Read
16 strb r3, [r0],#1 @ Write
21 @ Pre-aligned memcpy (32-bit blocks)
23 .globl __memcpy_align4
26 mvn r3, #3 @ Mask for checking length
35 @ single byte copies to finish off