High−level Instructions
3 − 144
Description
Performs AND operation on each bit in the 16-bit equivalent constant or 16-bit data specified by S1 and S2.
The AND operation result is stored in the 16-bit area specified by D.
(S1)
(S2) → (D)
You can use this instruction to turn off certain bits of the 16-bit data.
AND operation
The AND operation is shown below.
S1 S2 D
000
010
100
111
Flag conditions
・Error flag (R9007): Turns on and stays on when the area specified using the index modifier
exceeds the limit.
・Error flag (R9008): Turns on for an instant when the area specified using the index modifier
exceeds the limit.
・= flag (R900B): Turns on for an instant when the calculated result is recognized as “0”.