Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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,

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning C# 5.0 Databases

Authors: Vidya Vrat Agarwal

2nd Edition

1430242604, 978-1430242604

More Books

Students also viewed these Databases questions