English
Language : 

DR805X Datasheet, PDF (17/79 Pages) Digital Core Design – 8-bit RISC Microcontroller Instructions set details ver 3.10
DR805x Instructions set details
- 17 -
3.3. ADDC
Instruction: ADDC A, < src-byte>
Function:
Adds A and the source operand, then adds one (1) if CY is set, and
puts the result in A.
Description:
ADDC simultaneously adds the byte variable indicated, the carry flag
and the accumulator contents, leaving the result in the accumulator.
The carry and auxiliary carry flags are set, respectively, if there is a
carry out of bit 7 or bit 3, and cleared otherwise. When adding unsigned
integers, the carry flag indicates an overflow occurred. 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; otherwise OV is cleared. When adding signed integers, OV
indicates a negative number produced as the sum of two positive
operands or a positive sum from two negative operands. Four source
operand-addressing modes are allowed: register= direct, register-
indirect, or immediate.
3.3.1. ADDC A, RN
Operation: (PC) ← (PC) + 1
(A) ← (A) + (C) + (Rn)
Bytes:
1
Cycles:
2
Encoding:
00111 r r r
3.3.2. ADDC A, DIRECT
Operation: (PC) ← (PC) + 2
(A) ← (A) + (C) + (direct)
Bytes:
2
Cycles:
3
Encoding:
00110101
direct address
All trademarks mentioned in this document
are trademarks of their respective owners.
http://www.DigitalCoreDesign.com
http://www.dcd.pl
Copyright 1999-2003 DCD – Digital Core Design. All Rights Reserved.