Crossware

Table of Contents        Previous topic       Next topic       

MICROPROCESSOR INSTRUCTION REFERENCE->ADDC

ADDC        Add with Carry A,<source byte>

Add source byte and carry flag to accumulator and store result in accumulator.

Formats:
    
DescriptionMnemonicBytesCycles
    
Add Immediate Data:ADDC A,#<data>21
Add Indirect Address:ADDC A,@Ri11
Add Register:ADDC A,Rn11
Add Memory:ADDC A,<direct address>21

where Ri is R0 or R1 and Rn is R0 - R7
    
PSW:CACF0RS1RS0OVP
**N/AN/AN/A**

(N/A: Not affected)

Carry (C) is set if there is a carry out of bit 7, else it is cleared.
Auxiliary carry (AC) is set if there is a carry from bit 3, else it is cleared.
Overflow (OV) is set if there is a carry out of bit 6 but not out of bit 7 or a carry out of bit 7 but not out of bit 6, else it is cleared.