SAB80C517-M16 SIEMENS [Siemens Semiconductor Group], SAB80C517-M16 Datasheet - Page 183

no-image

SAB80C517-M16

Manufacturer Part Number
SAB80C517-M16
Description
8-Bit CMOS Single-Chip Microcontroller
Manufacturer
SIEMENS [Siemens Semiconductor Group]
Datasheet
ANL
Function:
Description:
Example:
ANL
Operation:
Encoding:
Bytes:
Cycles:
ANL
Operation:
Encoding:
Bytes:
Cycles:
Semiconductor Group
<dest-byte>, <src-byte>
A,Rn
A,direct
Logical AND for byte variables
ANL performs the bitwise logical AND operation between the variables indicated
and stores the results in the destination variable. No flags are affected.
The two operands allow six addressing mode combinations. When the destination
is a accumulator, the source can use register, direct, register-indirect, or immediate
addressing; when the destination is a direct address, the source can be the
accumulator or immediate data.
Note:
When this instruction is used to modify an output port, the value used as the original
port data will be read from the output data latch, not the input pins.
If the accumulator holds 0C3 H (11000011 B ) and register 0 holds 0AA H
(10101010 B ) then the instruction
ANL
will leave 81 H (10000001 B ) in the accumulator.
When the destination is a directly addressed byte, this instruction will clear
combinations of bits in any RAM location or hardware register. The mask byte
determining the pattern of bits to be cleared would either be a constant contained
in the instruction or a value computed in the accumulator at run-time.
The instruction
ANL
will clear bits 7, 3, and 2 of output port 1.
ANL
(A)
1
1
ANL
(A)
2
1
0 1 0 1
0 1 0 1
(A)
(A)
P1, #01110011 B
A,R0
(Rn)
(direct)
0 1 0 1
1 r r r
direct address
184
Instruction Set

Related parts for SAB80C517-M16