Skip to content

BCLR

Operation

Clears the indexed destination bit, sets Z when it was clear, and clears NCV.

Assembler Syntax

BCLR Rn(b), <ea>(e)

BCLR imm6(i), <ea>(e)

BCLR Rn(b), Rn(e)

BCLR imm6(i), Rn(e)

Privilege

Unprivileged

Repeat eligibility

REP eligible; REPcc observes computed

Clears the destination bit selected by the low six bits of the bit index, writes FLAGS.Z from whether that bit was previously clear, and clears FLAGS.N, FLAGS.C, and FLAGS.V. A memory destination is read by an ordinary selected-width load and updated by an ordinary selected-width store. The B-sized 0 or 1 value of the old tested bit supplies the REPcc observed value.

2.75in

Encodings

BCLR Rn(b), <ea>(e)

Format: Instruction format for BCLR Rn(b), <ea>(e)

Format: Instruction format for BCLR Rn(b), <ea>(e)

dstexcluded: immediate [invalid_destination]

2.75in BCLR imm6(i), <ea>(e)

Format: Instruction format for BCLR imm6(i), <ea>(e)

Format: Instruction format for BCLR imm6(i), <ea>(e)

dstexcluded: immediate [invalid_destination]

2.75in BCLR Rn(b), Rn(e)

Format: Instruction format for BCLR Rn(b), Rn(e)

Format: Instruction format for BCLR Rn(b), Rn(e)

2.75in BCLR imm6(i), Rn(e)

Format: Instruction format for BCLR imm6(i), Rn(e)

Format: Instruction format for BCLR imm6(i), Rn(e)