English
Language : 

SAB80515 Datasheet, PDF (145/270 Pages) Siemens Semiconductor Group – 8-Bit Single-Chip Microcontroller Family
Instruction Set
ANL
C, <src-bit>
Function:
Logical AND for bit variables
Description:
If the Boolean value of the source bit is a logic 0 then clear the carry flag; otherwise
leave the carry flag in its current state. A slash (”/” preceding the operand in the
assembly language indicates that the logical complement of the addressed bit is
used as the source value, but the source bit itself is not affected. No other flags are
affected.
Only direct bit addressing is allowed for the source operand.
Example:
Set the carry flag if, and only if, P1.0 = 1, ACC.7 = 1, and OV = 0:
MOV
ANL
ANL
C,P1.0
C,ACC.7
C,/OV
; Load carry with input pin state
; AND carry with accumulator bit 7
; AND with inverse of overflow flag
ANL
C,bit
Operation:
ANL
(C) ← (C) ∧ (bit)
Encoding:
Bytes:
Cycles:
1000 0010
2
2
bit address
ANL
C,/bit
Operation:
ANL
(C) ← (C) ∧ ¬ (bit)
Encoding:
Bytes:
Cycles:
1011 0000
2
2
bit address
Semiconductor Group
145