Bit set and bit clear instructions have a unique addressing mode that is similar to direct mode. The source code format for these instructions is:
BSET/BCLR bit_number, direct_address
Although each instruction has two operands, an assembled BSET or BCLR instruction consists only of an opcode and a direct address. Each bit that can be modified has its own BSET and BCLR opcodes.
The BSET opcodes for bits 0, 1, 2, 3, 4, 5, 6, and 7 are $10, $12, $14, $16, $18, $1A, $1C, and $1E, respectively. Similarly, the BCLR opcodes for bits 0, 1, 2, 3, 4, 5, 6, and 7 are $11, $13, $15, $17, $19, $1B, $1D, and $1F, respectively.
Like other read-modify-write instructions that take a direct address, BSET and BCLR execute in 5 clock cycles.