Subn (Subtract Word Data In Source Register From Destination Register) - Fujitsu FR Family Instruction Manual

32-bit microcontroller
Hide thumbs Also See for FR Family:
Table of Contents

Advertisement

7.10
SUBN (Subtract Word Data in Source Register from
Destination Register)
Subtract the word data in "Rj" from the word data in "Ri", store results to "Ri" without
changing the flag settings.

■ SUBN (Subtract Word Data in Source Register from Destination Register)

Assembler format:
SUBN Rj, Ri
Ri – Rj → Ri
Operation:
Flag change:
N, Z, V, and C: Unchanged
Execution cycles:
1 cycle
Instruction format:
Example:
SUBN R2, R3
N
Z
V
C
MSB
1
0
1
0
R2
1 2 3 4 5 6 7 8
R3
9 9 9 9 9 9 9 9
N Z V C
CCR
0 0 0 0
Before execution
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
1
1
1
0
Rj
LSB
Ri
R2
1 2 3 4 5 6 7 8
R3
8 7 6 5 4 3 2 1
N Z V C
CCR
0 0 0 0
After execution
81

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fr series

Table of Contents