Question: Q1. Please write down the values of the specified registers after these programs have run. a. lixl, 100 li x2, 120 sub x3.x2x1 addi x3,

 Q1. Please write down the values of the specified registers after

Q1. Please write down the values of the specified registers after these programs have run. a. lixl, 100 li x2, 120 sub x3.x2x1 addi x3, x3, 20 x1: .X2: X3: b. addi x15 x0 64 li x8, 128 sw x15, 0(x8) addi x15, x0, 128 srai x15, x15,1 lw x14, 0(x8) sub x15, x15, x14 x15 x14: _X15: c. Show the value of x15 and x14 after each instruction (for each iteration) (adr) (instr) 10148: lw x8, 256 1014c: addi x15 x0 18 x15: x14: 10150: sw x15 -24(x8) x14: 10154: sw x0-20(x8) X15: .x14: 10158: jal x0 Ox10170 X15: x14: 1015C: lw x15 -24(x8) X15: x14: 10160: andi x15 x15 1 X15: 10164: lw x14 -20(x8) X15: x14: 10168: add x 15 x14x15 1016c: sw x15 -24(x8) X15: x14: 10170: lw x15 -24(x8) X15: x14: 10174: blt x0x15 -24 x14: 10178: nop X15: x14: X15: x14: X15: .x14

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!