Download Print this page

ZiLOG Z80380 User Manual page 56

Advertisement

Z
ILOG
ADCW
ADD WITH CARRY (WORD)
ADCW [HL,]src
Operation:
HL(15-0)
The source operand together with the Carry flag is added to the HL register and the sum is
stored in the HL register. The contents of the source are unaffected. Two's complement
addition is performed.
Flags:
S:
Set if the result is negative; cleared otherwise
Z:
Set if the result is zero; cleared otherwise
H:
Set if there is a carry from bit 11 of the result; cleared otherwise
V:
Set if arithmetic overflow occurs, that is, if both operands are of the same sign and the
result is of the opposite sign; cleared otherwise
N:
Cleared
C:
Set if there is a carry from the most significant bit of the result; cleared otherwise
Addressing
Mode
Syntax
R:
ADCW [HL,]R
ADCW [HL,]RX
RX:
IM:
ADCW [HL,]nn
X:
ADCW [HL,](XY+d)
Field Encodings: rr: 00 for BC, 01 for DE, 11 for HL
y: 0 for IX, 1 for IY
5-22
src = R, RX, IM, X
← HL(15-0) + src(15-0) + C
Instruction Format
11101101 100011rr
11y11101 10001111
11101101 10001110 -n(low)- n(high)-
11y11101 11001110 ——d—
Z380
U
'
M
SER
S
ANUAL
Execute
Time
Note
2
2
2
4+r
I
DC-8297-03

Advertisement

loading
Need help?

Need help?

Do you have a question about the Z80380 and is the answer not in the manual?