Still loading. This can take a moment on a slow connection.
Still loading. This can take a moment on a slow connection.
Shift a byte left and right, and find out what each shift does to its value, and when it loses a bit.
The register
32 + 8 + 4 + 1 = 45
What will 0010 1101 (45) be after a logical shift left of 1 place? Predict it in the guide, or press a shift button to see.
Press Shift left or Shift right to move every bit one place, and set the register with its bits, its denary value or a preset. Watch what falls off each end, what comes in, and what happens to the value.
After you check a prediction, this says why.
Try what you found on the lesson’s 36 marked questions. Practise in Binary Shifts
A logical shift of an unsigned byte, as the syllabus sets it: every bit moves, and 0s come in at the end the bits move away from. Each press moves one place, presses the same way add up, and the check line compares the result with multiplying or dividing by 2 for each place. Tap a bit of the byte before to change it; the same shift is made again.