AND - AND
Syntax: and dst, src
Description:
AND truth table:
A | B | Result |
---|---|---|
0 | 0 | 0 |
0 | 1 | 0 |
1 | 0 | 0 |
1 | 1 | 1 |
Examples:
and rax, 42
-
C pseudo code would be value = value & 42;
and rcx, rbx
Add the contents of RBX into RCX
C pseudo code would be:
int valB = 50;
int valC = 20;
valC = valC & valB;