/
BSET
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.
, multiple selections available,
Related content
BSER
BSER
More like this
Set and Reset Bit Device
Set and Reset Bit Device
More like this
BSFR BSFL
BSFR BSFL
More like this
BSIN
BSIN
More like this
BIN Conversion
BIN Conversion
More like this
BKAND
BKAND
More like this