81
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
7.10 SUBN (Subtract Word Data in Source Register from
Destination Register)
Subtracts the word data in "Rj" from the word data in "Ri", stores results to "Ri" without
changing the flag settings.
■ SUBN (Subtract Word Data in Source Register from Destination Register)
Assembler format: SUBN Rj, Ri
Operation: Ri – Rj → Ri
Flag change:
N, Z, V, and C: Unchanged
Execution cycles: 1 cycle
Instruction format:
Example: SUBN R2, R3
NZVC
––––
MSB LSB
10101110 Rj Ri
R2
R3
1234 5678
9999 9999
NZVC
CCR
R2
R3
CCR
0000
NZVC
0000
8765 4321
1234 5678
Before execution After execution
Instruction bit pattern : 1010 1110 0010 0011