Instruction Flashcards
1
Q
Multiplication of constant using barrel shifter
A
- by 2^n
~~~
MOV Ra,Rb,LSL #n
~~~ - by 2^n+1
~~~
ADD Ra,Ra,Ra,LSL #n
~~~ - by 2^n-1
~~~
RSB Ra,Ra,Ra LSL #n
~~~ - by 6
- by 10 and add extra number
2
Q
features of MUL instr
A
- ̥second operand can’t be immediate
- result register must diff from first operand
- cycles depend on core type
- if S bit set — c flag is meaningless
3
Q
A