BSET

BSET, BSETP, BRST, BRSTP

 

BSET instruction sets the specific bit of Destination.

 

 

D

Destination

n

Bit number of Destination

 

Instruction

Device address

No. of Steps

Flag

M

X

Y

K

L

F

T

C

S

Z

D

@D

Int.

Error

Zero

Carry

BSET(P)

BRST(P)

D

o

-

o

o

o

-

o

o

-

o

o

o

-

3

o

-

-

n

o

o

o

o

o

o

o

o

-

o

o

o

o

 

BSET

BSET instruction sets (1) the specific bit (n) of Destination.

  • The range of n is from 0 to 15 (bit0~bit15)

 

Example)

If X01 is ON, BSET instruction sets b6 of D10 to 1.

 

 

 

 

BRST

BSET instruction resets (0) the specific bit (n) of Destination.

  • The range of n is from 0 to 15 (bit0~bit15)

 

Example)

If X00 is ON, BRST instruction resets b11 of D10 to 0.