Professional Documents
Culture Documents
Microcontrollers (EC3L007)
2
Arithmetic Instructions
• Addition
• Subtraction
• Increment
• Decrement
• The addition of 4AH and 35H does not generate a carry and
will reset the previous Carry flag .
• The 8-bit data and the Carry Flag (CY) are added to the
contents of accumulator.
• Example: ACI 45 H
CASE 1
CASE 2
• The 8-bit data and the Borrow Flag (i.e. CY) is subtracted
from the contents of the accumulator.
• Example: SBI 45 H
[27/08/2020, IIT BBS] | [Srinivas Boppu] | [SES] | [EC3L007] 23
Arithmetic Instructions
• Example: INX H
• Example: DCX H
• Reading:
Chapter 6 & 7, Ramesh Gaonkar