Table 2.5
Logic Operations Instructions
Instruction
Size*
AND
B/W/L
OR
B/W/L
XOR
B/W/L
NOT
B/W/L
Note:* Refers to the operand size.
B: Byte
W: Word
L: Longword
Rev. 1.0, 09/02, page 30 of 568
Function
Rd ∧ Rs → Rd, Rd ∧ #IMM → Rd
Performs a logical AND operation on a general register and another
general register or immediate data.
Rd ∨ Rs → Rd, Rd ∨ #IMM → Rd
Performs a logical OR operation on a general register and another
general register or immediate data.
Rd ⊕ Rs → Rd, Rd ⊕ #IMM → Rd
Performs a logical exclusive OR operation on a general register and
another general register or immediate data.
∼
(Rd) → (Rd)
Takes the one's complement (logical complement) of general register
contents.