68
ARITHMETIC OPERATIONS
2. What is the purpose of the CY fl ag?
3. How many addressing modes are available for
SUBB instruction?
4. What precaution should we take before using
SUBB instruction?
5. How many addressing modes are available for DEC
instruction?
6. Why are fl ags not aff ected for INC and DEC
instructions?
7. What are the conditions for setting the OV fl ag?
8. What are the conditions for clearing the AC fl ag?
9. What are the conditions for setting the P fl ag?
10. How are 16-bit or 32-bit additions implemented
using MCS-51 instructions?
Think and Solve
1. What is the purpose of the AC fl ag?
2. Which of the following two instructions would be
more appropriate to increment the accumulator by
one? INC A or ADD ...