BKOR

BKOR, BKORP

 

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

 

 

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

BKOR

BKORP

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 BKOR performs a bitwise OR 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