How to shift bytes in ARM assembly
up vote
0
down vote
favorite
Say I have the following hex values stored in registers; r1 = #0x1 r2 = #0x2 r3 = #0x3 r4 = #0xA And I want to store #0x123A in r0. Is there a way of shifting byte values similar to shifting bits with LSL/LSR so that I could AND each register (r1-r4) with a mask and then shift the bytes into correct position in r0?
assembly arm
share | improve this question
asked Nov 11 at 16:58
Ciarán
3 1
add a comment |