Question: Assume the register rl holds - / while another register r 2 holds + 2 0 for which both values are represented with the 2

Assume the register rl holds -/ while another register r2 holds +20 for which both values are represented with the 2s complement scheme, a student enrolled in ELEC 2441 wrote the following ARM instructions to perform the index out-of- bounds check for register r1.
CMP rl,4r2;
BGE IndexOutOfBounds;
Which of the following suggestions is correct about the above ARM instructions to perform the relevant check for register rl ?
A. the first instruction should be revised as CMP r2,4r1;;
B. the second instruction should be revised as RE IndexOutOfBounds;;
C. the second instruction IndexOutOfBound;s;
D. the second instruction IndexOutOfBounds;3
E. none of the above.

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!