32.12.1.4 Explanation of the AND and ANDP Instructions
The AND and ANDP instructions are logical AND instructions. When
an ADD instruction is executed, S1 and S2 will be logically ANDed
and the result is stored in D1.
The AND and ANDP instructions always pass power. When using the
AND and ANDP instructions, if the types of variables specified in
the S1, S2, and D1 operands are not the same type, an error will
occur. Designate the same variable type in all operands S1, S2, and
D1.
Refer to the following for specifying a constant.
S1
|
Operator
|
S2
|
D1
|
OFF
|
AND
|
OFF
|
OFF
|
ON
|
OFF
|
OFF
|
OFF
|
ON
|
OFF
|
ON
|
ON
|
ON
|
When an AND instruction is executed, the D1 bit will be turned
ON only when S1 and S2 are ON. Otherwise, the D1 bit is OFF.
When operand D1 is an integer variable
When operand D1 is an integer variable and
you want to input hexadecimal values in operands S1 and S2
When 0x (zero and lower case "x") is input, the following values
become hexadecimal values.
When Calculating Data in a Specified Array
(Integer Variable Array)
Specifying the entire array
Individually Specifying Array Variables
|