High−level Instructions
3 − 146
Description
Performs OR operation on each bit in the 16-bit equivalent constant or 16-bit data specified by S1 and S2.
The OR operation result is stored in the 16-bit area specified by D.
(S1)
(S2) → (D)
You can use this instruction to turn on certain bits of the 16-bit data.
OR operation
The OR operation is shown below.
S1 S2 D
000
011
101
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”.