
COM Instruction UM018809-0611
84
ZNEO
®
CPU Core
User Manual
COM
Definition
Complement
Syntax
COM dst
Operation
dst
~dst
Description
The contents of the destination operand are complemented (one’s complement). All 1 bits are
changed to 0 and all 0 bits are changed to 1.
Flags
Flags are set based on the 32-bit destination register value.
Syntax and Opcodes
76543210
C Z S V B CIRQE IRQE
0**0*–––
Legend
C = Cleared to 0.
Z = Set to 1 if the result is zero; otherwise, set to 0.
S = Set to 1 if the result msb is 1; otherwise set to 0.
V = Cleared to 0.
B = Set to 1 if the initial destination value was 0; otherwise set to 0.
CIRQE = No change.
IRQE = No change.
Instruction, Operands Word 0 Word 1 Word 2
COM Rd {454H, Rd}
Komentáře k této Příručce