You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>eZ80</strong> <strong>CPU</strong><br />
User Manual<br />
22<br />
AND A, s<br />
Logical AND<br />
Operation<br />
Description<br />
A ← A • s<br />
The s operand is any of r, n, (HL), (IX+d), or (IY+d). The s operand is bitwise<br />
AND’ed with the contents of the Accumulator, which contain the result. ADL<br />
mode affects operations with the HL, IX, and IY registers. ADL mode may be<br />
overridden with the .S or .L suffix.<br />
Condition Bits Affected<br />
S<br />
Z<br />
H<br />
P/V<br />
N<br />
C<br />
Set if result is negative; reset otherwise.<br />
Set if result is zero; reset otherwise.<br />
Set.<br />
Set if parity is even; reset otherwise.<br />
Reset.<br />
Reset.<br />
Mnemonic Operands ADL Mode Cycles Op Codes<br />
AND A,r X 1 jj<br />
AND A,n X 2 E6, nn<br />
AND A,(HL) X 2 A6<br />
AND.S A,(HL) 1 3 52, A6<br />
AND.L A,(HL) 0 3 49, A6<br />
AND A,(IX+d) X 4 DD, A6, dd<br />
AND.S A,(IX+d) 1 5 52, DD, A6, dd<br />
AND.L A,(IX+d) 0 5 49, DD, A6, dd<br />
AND A,(IY+d) X 4 FD, A6, dd<br />
AND.S A,(IY+d) 1 5 52, FD, A6, dd<br />
AND.L A,(IY+d) 0 5 49, FD, A6, dd<br />
jj = binary code 10 100 rrr where rrr identifies the A, B, C, D, E, H, or L<br />
register assembled as follows into the object code.<br />
Register rrr<br />
A 111<br />
B 000<br />
C 001<br />
D 010<br />
E 011<br />
H 100<br />
L 101<br />
UM007701-1100