We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
__asm void wordcopyasm(unsigned int *dest_r0, unsigned int *src_r1, int num_r2){loop: LDR r3,[r1]; STR r3,[r0]; SUBS r2,r2,#1; BNE loop; BX lr;}
void wordcopy(unsigned int *dest, unsigned int *src, int num){ int i; for(i=0;i<num;i++) dest[i] = src[i];)
__asm wordcopyfours(unsigned int *dest_r0, unsigned int *src_r1, int num_r2){loop: LDR r3,[r1,#0]; STR r3,[r0,#0]; LDR r3,[r1,#0x4]; STR r3,[r0,#0x4]; LDR r3,[r1,#0x8]; STR r3,[r0,#0x8]; LDR r3,[r1,#0xC]; STR r3,[r0,#0xC]; SUBS r2,r2,#0x10; BNE loop; BX lr;}