Binary shifts (updated)

8 flashcardsby —Griffith—
Study these flashcardsFree · spaced repetition · iPhone, Android, Mac & web

All cards

1
What are Binary shifts?
Moving the bits stored in a register a given number of places with the registers
2
What is a Logical shift?
- Bits shifted out of the registers replaced with 0
- e.g: 10101111 Shifted left 3 place becomes 01111000
3
What is Logical Shift Left (LSL)?
Multiples the number by 2 to the power of n
4
What is Logical Shift Right (LSR)?
Divides the number by 2 to the power of n
5
What is an Arithmetic shift?
- The sign of the number is preserved
- e.g: 10101111 Shifted right 3 places becomes 11110101
6
What is a Left shift
- Bits are shifted to the left
- e.g: 10101111 Shifted left 3 places becomes 01111000
7
What is a Right shift?
- Bits are shifted to the right
- e.g: 10101111 Shifted right 3 places becomes 1111010
8
What is a Cyclic shift?
- No bits are lost, bits shifted out of one end of the register are introduced at the other end of the register
- e.g: 10101111 Shifted left 3 places becomes 01111101
Study all 8 cards for free