Note: Arithmetic operations ADD, ADC, SUB, SBC, CP calculate flags in the same way. Logic operations AND, XOR, OR calculate flags in the same way.
Note2: INC/DEC are meant to be used for counters and loops. They don't modify CF, to allow loops and counters to increment/decrement without disturbing carry-sensitive logic.
=== BCD group ===