#78442 - Peter - Fri Apr 07, 2006 10:47 am
Hello,
I wonder if it is possible to write a value from one memory address directly to another. At the moment my code looks like:
r1 is the address of source values and r2 is the destination address. Is it possible to write code that will perform "write value from address in r1 to address in r2" without loading it temporarily to r0? Would save me a few cycles.
Thanks in advance
I wonder if it is possible to write a value from one memory address directly to another. At the moment my code looks like:
Code: |
ldrh r0, [r1], #2 @ load value from source address strh r0, [r2], #8 @ store value at destination address |
r1 is the address of source values and r2 is the destination address. Is it possible to write code that will perform "write value from address in r1 to address in r2" without loading it temporarily to r0? Would save me a few cycles.
Thanks in advance