Question: Consider the following RISC-V code and loop: addi 5,0,20 add 28,0,0 addi 15,0,1 LOOP: BEQ5,0, DONE sub 5,5,15 addi 28,28,3 j LOOP DONE: What is

 Consider the following RISC-V code and loop: addi 5,0,20 add 28,0,0

Consider the following RISC-V code and loop: addi 5,0,20 add 28,0,0 addi 15,0,1 LOOP: BEQ5,0, DONE sub 5,5,15 addi 28,28,3 j LOOP DONE: What is the final value (in decimal) in register 28 after executing this 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 Databases Questions!