Hi experts!
I want to use ldr/str or ldm/stm to copy memory not aligned 4bytes.
I know their input address should be aligned by 4 bytes.
but is there any solution to use ldr/str or ldm/stm though src or dst isn't aliged 4byte by modifing following code?
void wordcopy(unsigned char *dst, unsigned char *src, int num) {loop: LDR r3,[r1]; STR r3,[r0]; SUBS r2,r2,#1; BNE loop; BX lr;}
Hello,
I hope the __rt_memcpy function of the following link will help you.
http://research.microsoft.com/en-us/um/redmond/projects/invisible/src/crt/md/arm/_memfunc.s.htm
Best Regards,
Yasuhiko Koumoto.