ARM Instructions Example
ARM Instructions Example
r0 = 0x00000000
r1 = 0x00000001
r2 = 0x0000000A
r3 = 0x0000000F
UMLAL r0,r1,r2,r3
RSB r0,r2,r2,LSL#3
MOV r1,r0,ROR r2
BIC r0,r3,r2
CLZ r1,r2
TST r3,r0
r0 = 0x00000000
r1 = 0x00000001
r2 = 0x0000000A
r3 = 0x0000000F
UMLAL r0,r1,r2,r3
r0 = 0x00000096
r1 = 0x00000001
r2 = 0x0000000A
r3 = 0x0000000F
RSB r0,r2,r2,LSL #3
r0 = 0x00000046
r1 = 0x00000001
r2 = 0x0000000A
r3 = 0x0000000F
MOV r1,r0,ROR r2
r0 = 0x00000046
r1 = 0x00000000
r2 = 0x0000000A
r3 = 0x0000000F
BIC r0,r3,r2
r0 = 0x00000005
r1 = 0x00000000
r2 = 0x0000000A
r3 = 0x0000000F
CLZ r1,r2
r0 = 0x00000005
r1= 0x0000001C
r2 = 0x0000000A
r3 = 0x0000000F
TST r3,r0
r0 = 0x00000005
r1= 0x0000001C
r2 = 0x0000000A
r3 = 0x0000000F
(Note: Clearly understand each instruction and its usage. Then apply it to the registers, work
out yourself. Dont forget the binary, hex and decimal formats while interpreting the
digits/values. See if the answers above match with what you have got. Let me know if I have
made any mistake!!)
S. V. Rao
Dept of ECE
9446322590