For some cases my book only includes the machine code and not the assembly code. For data processing we have this:
There are some cases i am wondering about:
- Add with rd=r3, rn=r2, rot=3, imm8=15,
- Add with rd=r3, rn=r2, shamt=5, rm=r8, sh=00(logical shift left)
- Add with rd=r3, rn=r2, rs=r5, rm=r8, sh=00(logical shift left)
What is the assembly codes for these cases?
My idea is:
- ADD r3,r2,#15,#2
- ADD r3, r2, rm,#00, #5
- ADD r3,r2, r8, #00, r5
Is this correct?, or what is the correct assembly code?