Crossware

Table of Contents        Previous topic       Next topic       

MICROPROCESSOR INSTRUCTION REFERENCE->ADD

ADD        Add A,<source byte>

Add the source byte to the accumulator and store the result in the accumulator.

Formats:
    
DescriptionMnemonicBytesCycles
    
Add Immediate Data:ADD A,#<data>  21
Add Indirect Address:ADD A,@Ri11
Add Register:ADD A,Rn11
Add Memory:ADD 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.