
CHAPTER 6 DETAILED RULES FOR EXECUTION INSTRUCTIONS
6.3ADDCW (ADD Word Data of Accumulator and Temporary Accumulator with Carry to Accumulator)
Add the word data of T to that of A, add a carry to the LSB and then return the results to A.
■ADDCW (ADD Word Data of Accumulator and Temporary Accumulator with Carry to Accumulator)
Operation
(A) ← (A) + (T) + (C) (Word addition with carry)
Assembler format
ADDCW A
Condition code (CCR)
N | Z | V | C |
|
|
|
|
+ | + | + | + |
|
|
|
|
+: Changed by executing instruction
N:Set to 1 if the MSB of A is 1 as the result of operation and set to 0 in other cases.
Z:Set to 1 if the result of operation is 0000H and set to 0 in other cases.
V:Set to 1 if an overflow occurs as the result of operation and set to 0 in other cases.
C:Set to 1 if a carry occurs as the result of operation and set to 0 in other cases.
Number of execution cycle: 1
Byte count: 1
OP code: 23
52