Question: 5. Comparison between shift right arithmetic (sra) and shift right logic (srl) (2 points) 5.1. Suppose we have OxFFFFFFCO, and we interpret this value
5. Comparison between shift right arithmetic (sra) and shift right logic (srl) (2 points) 5.1. Suppose we have OxFFFFFFCO, and we interpret this value in 2's complement, which means MSB is used for sign. What is the value in base-10? And after dividing the value in base-10 by 16 (=2^4). What is the division result in base-10? Show your derivation. (5 points) 5.2. Suppose that $t0 has the value OxFFFFFFCO. After running "sra $t0, $t0, 4", express the value in $t0 register in hexadecimal (base-16) and base-10. (5 points) 5.3. Suppose that $t0 has the value OxFFFFFFCO. After running "srl $t0, $t0, 4, express the value in $t0 register in hexadecimal (base-16) and base-10.
Step by Step Solution
There are 3 Steps involved in it
The provided image includes three related questions concerning the operations of arithmetic right shift sra and logical right shift srl on a hexadecim... View full answer
Get step-by-step solutions from verified subject matter experts
