Skip to content

Lesson 37: Bit shifts

Move the bits

  • In lesson 22 four LEDs showed a number from 0 to 15 in binary. Now you move the bits: a shift.
  • An LED that is on is a 1, an LED that is off is a 0.
  • Each LED has a place value: 8, 4, 2 and 1. Add the values of the LEDs that are on.
  • Together the four LEDs are a 4-bit register, like a tiny part of the computer's memory.

Words for this lesson

Word Meaning
register a small store of bits inside a processor
place value what a bit is worth: 8, 4, 2 or 1
logical shift move all the bits left or right; 0s come in
overflow the answer needs more bits than the register has

Log in or create account

IGCSE, A-Level & AP