XNOR
WXNR, WXNRP, DXNR, DXNRP
WXNR instruction performs a bitwise XNOR operation on Source 1 and Source 2 and places the result in the Destination. The bitwise XNOR operation returns 0, if the bits from the operands are different. It returns 1, if the bits from the operands are the same (both 0 or both 1).
WXNR(WXNRP) is for 16bit source and DXNR(DXNRP) 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 | ||
WXNR WXNRP DXNR DXNRP | S1 | 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 | |||||
D | o | - | o | o | o | - | o | o | - | - | o | o | - |
Example)
If F12 is ON, H2364 moves to D1.
If F10 is ON, the WXNR performs a bitwise XNOR operation by using the 16bits in H789C (X00) and H2364 (D1) and places the result HA407 in the Y20