Question: Problem 2 - Shift operations Scenario ( applies to all Problem 2 . x questions ) : Shift Operations - The following are 2 lines

Problem 2- Shift operations
Scenario (applies to all Problem 2.x questions):
Shift Operations - The following are 2 lines within assembly language (line numbers are for
reference only):
20
sll R1, R2, R3
sra R4, R5, R6
Registers R1 through R6 are all 32-bit integers.
Question 2.1: What type of values (signed or unsigned) should these 6 registers contains?
Question 2.2: Before executing line 20, register R 2 contains the value 0x00008000. If R3
contains the value of 3, what will register R1 contain after line 20 executes?
Question 2.3: Before executing line 20, register R6 contains 5 and Register R5 contains 14,400.
What will register R4 contain after line 21 executes?
 Problem 2- Shift operations Scenario (applies to all Problem 2.x questions):

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!