Multiply or divide by shifting: Starting from a value equal to 44 in denary, one logical left shift gives 88 and one logical right shift gives 22.
Losing the most significant 1-bit (MSB) after repeated left shifts: Starting from 00010101 (denary 21), left-shift once: 00101010 (42); twice: 01010100 (84); three times: 10101000 (168); four times: 01010000 (80). The fourth shift discards the MSB 1, so the value is not equal to 21Γ16 in 8 bits, which shows why losing edge bits changes the expected doubling.
Shift limit to zero in 8 bits: Starting from 00011000 (denary 24), left shift five times: 00110000 (48), 01100000 (96), 11000000 (192), 10000000 (128), 00000000 (0). Repeated shifts push all 1-bits out of the 8-bit register, leaving 0.
- Picture 8 seats in a row. Shift right: everyone moves one seat right, the last student falls off the edge, and a new empty seat appears at the left as 0. Shift left: everyone moves one seat left, the first student falls off, and a new empty seat appears at the right as 0.