OR
WOR, WORP, DOR, DORP
WOR instruction performs a bitwise OR operation on Source 1 and Source 2 and places the result in the Destination. The bitwise OR operation returns 1, if the matching bits from either or both operands are 1. It returns 0, if both the bits are 0.
WOR(WORP) is for 16bit source and DOR(DORP) is for 32bit source.
| |
S1, S2 | Source |
D | Destination |
Instruction | Device address | No. of Steps | Flag | |||||||||||||||
M | X | Y | K | L | F | T | C | S | Z | D | @D | Int. |
| Error | Zero | Carry | ||
WOR WORP DOR DORP | S1 | o | o | o | o | o | o | o | o | - | o | o | o | o | 4 | o | - | - |
S2 | o | o | o | o | o | o | o | o | - | o | o | o | o | |||||
D | o | - | o | o | o | - | o | o | - | - | o | o | - |
Example)
If F12 is ON, H9A94 moves to D1.
If F10 is ON, the WOR performs a bitwise OR operation by using the 16bits in H3232 (D0) and H9A94 (D1) and places the result HBAB6 in the Y20.