448
Logic Instructions Section 3-12
Description XNRL(613) takes the logical exclusive NOR of data specified in I
1
and I
2
and
outputs the result to R, R+1.
• When the content of any of the corresponding bits in I
1,
I
1
+1, I
2,
and
I
2
+1are different, a 0 will be output to the corresponding bit in R, R+1.
When any of them are the same, a 1 will be output to the corresponding
bit in R, R+1.
(I
1,
I
1
+1), (I
2,
I
2
+1) + (I
1,
I
1
+1), (I
2,
I
2
+1)
→ (R, R+1)
Flags
Precautions When XNRL(613) is executed, the Error Flag will turn OFF.
If as a result of the exclusive NOR, the content of R, R+1 is 00000000 hex, the
Equals Flag will turn ON.
If as a result of the exclusive NOR, the leftmost bit of R+1 is 1, the Negative
Flag will turn ON.
Examples When CIO 0.00 is ON, the logical exclusive NOR will be taken of correspond-
ing bits in CIO 1001, CIO 1000, and CIO 2001, CIO 2000 and the results will
be output to corresponding bits in D501 and D500.
Index Registers ---
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Area I
1
I
2
R
I
1,
I
1
+1 I
2,
I
2
+1 R, R+1
111
100
010
001
Name Label Operation
Error Flag ER OFF
Equals Flag = ON when the result is 0.
OFF in all other cases.
Negative Flag N ON when the leftmost bit of R is 1.
OFF in all other cases.
S
1
: CIO 1000
S
1
+1: CIO 1001
S
2
: CIO 2000
S
2
+1: CIO 2001
D: D500
D+1: D501
0.00
1000
2000
D500
1000.00
1000.01
1000.02
1000.03
1000.15
1001.00
1001.15
2000.00
2000.01
2000.02
2000.03
2000.15
2001.00
2001.15
D500
D501
Note: The s