Question: Question 6 Consider the following RISC - V codeadd x 6 , x 9 , x 0 add x 7 , x 2 , x

Question 6Consider the following RISC-V codeadd x6, x9, x0 add x7, x2, x0 jal x1, Lsub x9, x10, x0...L: lui x9,0xABlw x10,0(x9) addi x10, x14,-5 beq x10, x0, L jalr x0,0(x1)#Memory Address of this instruction is decimal 500#Memory address of this instruction is decimal 10001) What is the value of PC and register x1 after the execution of jal L? Explain how your arrived at the answer?2) What is the value of PC and register x0 after the execution of jalr x0,0(x1)? Explain how you arrived at the answer?3) What would you store in the 12-bit immediate field in the encoding of the beq instruction 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!