Question: This question is based on the following code snippet: cmp . w R 4 , R 5 jhs skip _ sub sub.w R 4 ,

This question is based on the following code snippet:
cmp.w R4, R5
jhs skip_sub
sub.w R4, R5
skip_sub:
rra.w R5
You are given different values for R4 and R5 in (a)-(d).
In each of these scenarios, what is the next line executed right after the conditional jump in line
39? Is it line 41 or is it line 44?
(a) The value in R4 is 25000 and the value in R5 is 30000.
(b) The value in R4 is 30000 and the value in R5 is 35000.
(c) The value in R4 is 35000 and the value in R5 is 25000.
(d) The value in R4 is 35000 and the value in R5 is 40000.
This question is based on the following code

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 Programming Questions!