User Manual
C166S V2
Detailed Instruction Description
User Manual
8-309
V 1.7, 2001-01
SUBC
Integer Subtraction with Carry
SUBC
Group
Arithmetic Instructions
Syntax
SUBC op1, op2
Source Operand(s)
op1, op2
→
WORD
Destination Operand(s)
op1
→
WORD
Operation
(op1)
←
(op1) - (op2) - (C)
Description
Performs a 2s complement binary subtraction of the source operand specified by op2
and the previously generated carry bit from the destination operand specified by op1.
The result is then stored in op1. This instruction can be used to perform multiple
precision arithmetic.
CPU Flags
E
Set if the value of op2 represents the lowest possible negative number.
Cleared otherwise. Used to signal the end of a table.
Z
Set if result equals zero and previous Z flag was set. Cleared otherwise.
V
Set if an arithmetic underflow occurred, i.e. the result cannot be
represented in the word data type. Cleared otherwise.
C
Set if a borrow is generated. Cleared otherwise.
N
Set if the most significant bit of the result is set. Cleared otherwise.
Encoding
E
Z
V
C
N
*
S
*
S
*
Mnemonic
Format
Bytes
SUBC
Rw
n
, #data3
38 n:0###
2
SUBC
Rw
n
, Rw
m
30 nm
2
SUBC
Rw
n
, [Rw
i
+]
38 n:11ii
2
SUBC
Rw
n
, [Rw
i
]
38 n:10ii
2
SUBC
mem , reg
34 RR MM MM
4
SUBC
reg , #data16
36 RR ## ##
4
SUBC
reg , mem
32 RR MM MM
4
Summary of Contents for C166S V2
Page 102: ...User Manual C166S V2 C166S V2 Memory Organization User Manual 3 102 V 1 7 2001 01...
Page 116: ...User Manual C166S V2 Instruction Pipeline User Manual 4 116 V 1 7 2001 01...
Page 152: ...User Manual C166S V2 Interrupt and Exception Handling User Manual 5 152 V 1 7 2001 01...
Page 204: ...User Manual C166S V2 Instruction Set User Manual 7 204 V 1 7 2001 01...
Page 420: ...User Manual C166S V2 Detailed Instruction Description User Manual 8 420 V 1 7 2001 01...
Page 432: ...User Manual C166S V2 Summary of CPU Subsystem Registers User Manual 9 432 V 1 7 2001 01...
Page 437: ...437...