Download Print this page

Siemens C16 Series Instruction Set Manual page 42

16-bit cmos single-chip microcontrollers

Advertisement

BCMP
Syntax
Operation
Data Types
Description
Note:
Condition Flags
Addressing Modes
Semiconductor Group
30Mar98@15:00h
Bit to Bit Compare
BCMP
op1, op2
(op1) ⇔ (op2)
BIT
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.
The meaning of the condition flags for the BCMP instruction is different
from the meaning of the flags for the other compare instructions.
E
Z
0
NOR
OR
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.
Mnemonic
BCMP
bitaddr
Z.z
C166 Family Instruction Set
V
C
N
AND
XOR
Format
, bitaddr
2A QQ ZZ qz
Q.q
42
Instruction Description
BCMP
Version 1.2, 12.97
Bytes
4

Hide quick links:

Advertisement

loading