BKXNR

BKXNR, BKXNRP

 

BKXNR instruction performs a bitwise XNOR operation by using (n)number of word(16bit) 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).

 

 

S1, S2

Source

D

Destination

n

Number of words

 

Instruction

Device address

No. of Steps

Flag

M

X

Y

K

L

F

T

C

S

Z

D

@D

Int.

 

Error

Zero

Carry

BKXNR

BKXNRP

S1

o

o

o

o

o

o

o

o

-

o

o

o

o

5

o

-

-

S2

o

o

o

o

o

o

o

o

-

o

o

o

o

D

o

-

o

o

o

-

o

o

-

o

o

o

-

n

o

o

o

o

o

o

o

o

-

o

o

o

o

 

Example)

If X01 is ON, the BKXNR performs a bitwise XNOR operation by using the 3 word of D0(D0, D1, and D2) and D100(D100, D101, and D102) and places the results in D200, D201, and D202.

Source 1 : D0, D1, and D2

Source 2 : D100, D101, and D102

Destination : D200, D201, and D202

Number of word : 3 word