Operand2 Flashcards
1
Q
Operand2
Operand2 is –
A
Operand2
Operand2 is the flexible second operand to most instructions.
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.
3
Q
Examples
MOV r0, #42
ORR r1, r1, #0xFF00
A
Immediate values
4
Q
A
5
Q
MOV r2, r2, LSR #1
RSB r10, r5, r14, ASR #14
A
Registers shifted by values:
6
Q
BIC r11, r11, r1, LSL r0
CMP r9, r8, ROR r0
A
Registers shifted by registers: