7.6
ADDN (Add Immediate Data to Destination Register)
Add the result of the higher 28 bits of 4-bit immediate data with zero extension to the
word data in "Ri", store the results to "Ri" without changing flag settings.
■ ADDN (Add Immediate Data to Destination Register)
Assembler format:
ADDN #i4, Ri
Operation:
Ri + extu(i4) → Ri
Flag change:
N, Z, V, and C: Unchanged
Execution cycles:
1 cycle
Instruction format:
Example:
ADDN #2, R3
N
Z
V
C
–
–
–
–
MSB
1
0
1
0
Instruction bit pattern :
R3
9 9 9 9 9 9 9 7
N Z V C
CCR
0 0 0 0
Before execution
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
0
0
0
0
i4
1010 0000 0010 0011
LSB
Ri
R3
9 9 9 9 9 9 9 9
N Z V C
CCR
0 0 0 0
After execution
77