EasyManua.ls Logo

Intel 8080 - ANA

Intel 8080
224 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chdpter
3.
Instruction
Set
ANA
3-6
Example:
A~sume
that the accumulator contains the value 14H. The i,nstruction
ADI
66 has the following effect.
Accumulator
Immediate data
14H
42H
00010100
01000010
01 01
011
0
,=
56H
Notice
that
the assembler converts the decimal value 66 into the hexadecimal value 42.
LOGICAL
AND
WITH
ACCUMULATOR
ANA performs a logical AND operation using the content>
of
the specified byte and the accumulator. The result
is
placed
in
the accumulator.
Summary
of
Logical Operations
AND
produces a one bit
in
the result only
W:len
the corresponding bits
in
the test data and the mask data arc
ones.
OR produces d one bit
in
the result when the corresponding bits
in
eithel~
the test data or the mask data are
ones.
Exclusive OR produces a one bit only when the corresponding bits
in
the test data and the mask data are
different; i.e.,
a one bit
in
either the test
dau
or the mask data - but not both - produces a one bit
in
the
result.
AND
1010 1010
0000
1111
0000 1010
AND
Register
with
Accumulator
Opcode
ANA
OR
1010 1010
00001111
1010 1111
Operand
reg
EXCLUSIVE OR
1010
0000
1010
1010
1111
0101
The operand must specify one
of
the register·s A through
E,
H or
L.
This instruction ANDs the contents of the
specified register with the accumulator and stores the result
in
the accumulator. The carry flag
is
reset
to
zero.
! 1
0 0 0
I S
S
sl
Cycles:
States:
4
Addressing: register
Flags:
Z,S,P,CY,AC

Table of Contents

Related product manuals