View Source Chip8.Interpreter.Instruction.AND (chip8 v1.0.0)

Calculates the bitwise AND between two operands.

The result of this operation is saved into the first operand. A bitwise AND compares the corresponding bits of the values, when both of the bits are 1 it results in a 1, and 0 otherwise.

variants

Variants

OpcodeMnemonicDescription
8xy2ADD Vx, VySet Vx = Vy AND Vy.