Professional Documents
Culture Documents
10-Computer Instruction and Instructions Sets-01-02-2024
10-Computer Instruction and Instructions Sets-01-02-2024
0
• Logical shift Right
0 0 0 1 1 0 1 0
0 0 0 1 1 0 1 0
Sign bit
Sign bit
0
Sign bit
0
Overflow occurs as
Sign bit sign bit changes
0
• Arithmetic shift Right: -ve values are in 2’s complement form
1 0 0 1 1 0 1 0
Sign bit
Sign bit
Sign bit
Sign bit
• Rotate left
0 0 0 1 1 0 1 0
Buffer
Buffer
• Rotate right
0 0 0 1 1 0 1 0
0 0 0 1 1 0 1 0
Buffer
Buffer
Buffer
• Rotate left through carry
0 0 0 1 1 0 1 0
0 0 0 1 1 0 1 0 0
Buffer Carry
Buffer Carry
Buffer Carry
• Rotate right through carry
0 0 0 1 1 0 1 0
0 0 0 0 1 1 0 1 0
Carry Buffer