ASM, question about LDR


Thorium

Still Fresh
Joined
Nov 17, 2010
Messages
81
Another ARMv7 ASM question:


Can the destination register and the base register be the same on the LDR instruction?


The reference manual dont state it's illegal, but i want to be sure, before i have to rewrite my addressing code.
 
Last edited by a moderator:
Sure, this is done all the time. But I wouldn't try using base writeback with it, not that you'd want to.
 
Back
Top