Subtract Floating-Point Value, 3-Operand
SUBF3
13-231
Assembly Language Instructions
Example 1
SUBF3
*AR0
– –
(IR0),*AR1,R4
Before Instruction
After Instruction
R4
00
0000 0000
R4
05 1D00 0000
AR0
80 9888
AR0
80 9808
AR1
80 9851
AR1
80 9851
IR0
80
IR0
80
LUF
0
LUF
0
LV
0
LV
0
UF
0
UF
0
N
0
N
0
Z
0
Z
0
V
0
V
0
C
0
C
0
Data memory
809888h
70C8000
809888h
70C8000
809851h
733C000
809851h
733C000
3.9250e+01
1.4050e+02
1.4050e+02
1.02
1.02
Example 2
SUBF3 R7,R0,R6
Before Instruction
After Instruction
R0
03 4C20 0000
R0
03 4C20 0000
R6
00 0000 0000
R6
05 B7C8 0000
R7
05 7B40 0000
R7
05 7B40 0000
LUF
0
LUF
0
LV
0
LV
0
UF
0
UF
0
N
0
N
0
Z
0
Z
1
V
0
V
0
C
0
C
0
1.2701
6.01
–5.0001
1.2701
6.01
Note:
Cycle Count
See subsection 8.5.2,
Data Loads and Stores, on page 8-24 for the effects
of operand ordering on the cycle count.