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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

features of MUL instr

A
  1. ̥second operand can’t be immediate
  2. result register must diff from first operand
  3. cycles depend on core type
  4. if S bit set — c flag is meaningless
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly