Topic: Computer Organization / Digital Logic
What is the fundamental operational difference between an arithmetic shift-right and a logical shift-right after one shift on an 8-bit signed two's complement register holding 11010110?
- A. Arithmetic produces 11101011; Logical produces 01101011
- B. Arithmetic produces 01101011; Logical produces 11101011
- C. Arithmetic produces 01101010; Logical produces 11101011
- D. Arithmetic causes overflow; Logical sets carry flag
Answer: A. Arithmetic produces 11101011; Logical produces 01101011
Explanation: The original binary value is `11010110`. A Logical Shift Right shifts all bits to the right by 1 and fills the leftmost bit (MSB) with a `0`, resulting in `01101011`. An Arithmetic Shift Right shifts all bits to the right but preserves the original sign bit (the MSB, which is `1`), filling the new leftmost bit with `1`, resulting in `11101011`.