
30Mar98@15:00h
Semiconductor Group
42
Version 1.2, 12.97
C166 Family Instruction Set
Instruction Description
BCMP
Bit to Bit Compare
BCMP
Syntax
BCMP op1,
op2
Operation
(op1)
⇔
(op2)
Data Types
BIT
Description
Performs a single bit comparison of the source bit specified by operand
op1 to the source bit specified by operand op2. No result is written by this
instruction. Only the condition codes are updated.
Note:
The meaning of the condition flags for the BCMP instruction is different
from the meaning of the flags for the other compare instructions.
E Always cleared.
Z Contains the logical NOR of the two specified bits.
V Contains the logical OR of the two specified bits.
C Contains the logical AND of the two specified bits.
N Contains the logical XOR of the two specified bits.
Addressing Modes
Mnemonic
Format
Bytes
BCMP
bitaddr
Z.z
, bitaddr
Q.q
2A QQ ZZ qz
4
Condition Flags
E
Z
V
C
N
0
NOR
OR
AND
XOR