Question: 2. Given a number in R1, extract the highest 4 bits of R1 into R2. For example: R1 0110 1100 0111 0101 R2 0000 0000

 2. Given a number in R1, extract the highest 4 bits

2. Given a number in R1, extract the highest 4 bits of R1 into R2. For example: R1 0110 1100 0111 0101 R2 0000 0000 0000 0110 Hint 1: In 2's complement, the highest bit of a negative number is 1. The highest bit of a positive number or zero is 0. Hint 2: Use left shift to turn the second highest bit to be the highest bit

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!