![](http://datasheet.mmic.net.cn/310000/ADE7169ACPF16_datasheet_16240591/ADE7169ACPF16_80.png)
ADE7169F16
Preliminary Technical Data
ADD
Function: Adds the source to the Accumulator.
Status Flags Referenced by Instruction: None
Status Flags Affected:
Status
Flag
Rev. PrD | Page 80 of 140
A, source
Description
C
Set if there is a carry out of bit 7. Cleared otherwise.
Used to indicate an overflow if the operands are
unsigned.
OV
Set if there is a carry out of bit 6 or a carry out of bit 7
but not if both are set. Used to indicate an overflow
for signed addition. This flag will be set if two positive
operands yield a negative result or two negative
operands yield a positive result.
AC
Set if there is a carry out of bit 3. Cleared otherwise.
ADDC A, source
Function: Adds the source and the Carry bit to the Accumulator
Status Flags Referenced by Instruction: Carry
Status Flags Affected:
Status
Flag
Description
C
Set if there is a carry out of bit 7. Cleared otherwise.
Used to indicate an overflow if the operands are
unsigned.
OV
Set if there is a carry out of bit 6 or a carry out of bit 7
but not if both are set. Used to indicate an overflow
for signed addition. This flag will be set if two positive
operands yield a negative result or two negative
operands yield a positive result.
AC
Set if there is a carry out of bit 3. Cleared otherwise.
SUBB
Function: Subtract the source byte and the carry (borrow) flag
from the Accumulator.
Status Flags Referenced by Instruction: Carry (Borrow)
Status Flags Affected:
Status
Flag
A, source
Description
C
Set if there is a borrow needed for of bit 7. Cleared
otherwise. Used to indicate an overflow if the
operands are unsigned.
OV
Set if there is a borrow is needed for bit 6 or bit 7 but
not for both. Used to indicate an overflow for signed
subtraction. This flag will be set if a negative number
subtracted from a positive yields a negative result or it
a positive number subtracted from a negative number
yields a positive result.
AC
Set if a borrow is needed for bit 3. Cleared otherwise.
MUL
Function: Multiplies the Accumulator by the B register. This
operation is unsigned. The lower byte of the 16-bit product is
stored in the Accumulator and the higher byte is left in the B
register.
Status Flags Referenced by Instruction: None
Status Flags Affected: None
Status
Flag
AB
Description
C
Cleared
OV
Set if the result is greater than 255. Cleared
otherwise.
DIV
Function: Divides the Accumulator by the B register. This
operation is unsigned. The integer part of the quotient is stored
in the Accumulator and the remainder goes into the B register.
Status Flags Referenced by Instruction: None
Status Flags Affected:
Status
Flag
AB
Description
C
Cleared
OV
Cleared unless the B register was equal to 0, in which
case the results of the division are undefined and the
OV flag is set.
DA
A
Function: Adjusts the Accumulator to hold two four bit digits
after the addition of two binary coded decimals (BCDs) with
the ADD or ADDC instructions. If the AC bit is set or if the
value of bits 0-3 exceed 9, 0x06 is added to the accumulator to
correct the lower four bits. If the carry bit was set when the
instruction began, or if 0x06 was added to the accumulator in
the first step, 0x60 is added to the accumulator to correct the
higher four bits.