Subtract Integer Conditionally
SUBC
13-227
Assembly Language Instructions
Example 1
SUBC @98C5h,R1
Before Instruction
After Instruction
R1
00
0000 04F6
R1
00 0000 00C9
DP
080
DP
080
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
8098C5h
492
8098C5h
492
201
1170
1270
1170
Example 2
SUBC 3000,R0 (3000 = 0BB8h)
Before Instruction
After Instruction
R0
00
0000 07D0
R0
00 0000 0FA0
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
4000
2000