Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
AC is the carry from bit 3 to bit 4. It's used when doing BCD(Binary Coded Decimal) arithmetic.4electros said:hello,what's the difference in function between AC(auxiliary carry flag) and CY(carry flag) and overfow flag (OV) cause i mix them.
thanks
Example
7F + 7F = FE => POS + POS = NEG
There is no carry, but there is overflow
Papabravo said:AC is the carry from bit 3 to bit 4. It's used when doing BCD(Binary Coded Decimal) arithmetic.
4electros said:BCD is binary coded decimal which means that it extends from 0000 to 1001 (0 to 9 in decimal) but when exceeds 9 it becomes 1010 and so on
Nigel Goodwin said:I'm presuming the 8051 does BCD?, as I'm not familiar with it - but the ancient 6502 managed to do it OK!.