Learning objectives

Use AND with a mask to test a single bit of a register, and read the result as zero or non-zero

Use OR to set a bit and AND with an inverse mask to clear a bit without changing the other bits

Use XOR to toggle chosen bits

Write and trace a short instruction sequence that tests one bit, branches, then changes another bit and stores the result

Continue with a revision plan

These learning objectives are available to everyone. Sign in with an eligible plan to read the full note and worked examples.