Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

If a caller uses the instruction: jal x1, F1 residing at address 8200 to call the F1 function residing at address 4000 and if the

image text in transcribed

If a caller uses the instruction:

jal x1, F1

residing at address 8200 to call the F1 function residing at address 4000 and if the values of x2, x7, x20, x21, x22, x23, and x24 were 9000, -23, 250, 4555, -200, 760, and 1100 respectively at call time, what would be their final values at return time? Also, what will be the value of x20 immediately after the execution of the ori instruction?

\begin{tabular}{|ll} \hline F1: & addi x2,2,4 \\ & sw x20, 0(2) \\ & Lui 20,365 \\ & ori 20,20,304 \\ & blt x21,20,L1 \\ & sub 24,22,23 \\ & beq x7, x7, Ex \\ L1: & add 24,22,23 \\ Ex: & lw x20, 0(2) \\ & addi 2,2,4 \\ & jalr 00,0(x1) \end{tabular}

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

Step: 3

blur-text-image

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

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions

Question

with these numbers can you answer the following...

Answered: 1 week ago