Operand2 Flashcards

1
Q

Operand2

Operand2 is –

A

Operand2

Operand2 is the flexible second operand to most instructions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Operand2

can take one of three different forms:

A
  • Immediate value.
    • An 8-bit number rotated right by an even number of places.
  • Register shifted by value.
    • A 5-bit unsigned integer shift.
  • Register shifted by register.
    • The bottom 8 bits of a register.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Examples

  • MOV r0, #42
  • ORR r1, r1, #0xFF00
A

Immediate values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  • MOV r2, r2, LSR #1
  • RSB r10, r5, r14, ASR #14
A

Registers shifted by values:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  • BIC r11, r11, r1, LSL r0
  • CMP r9, r8, ROR r0
A

Registers shifted by registers:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly