Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write the LEGv8 assembly code to call a procedure with the following prototype: long long int my_procedure(long long int a, long long int b, long

Write the LEGv8 assembly code to call a procedure with the following prototype:

long long int my_procedure(long long int a, long long int b, long long int c); 

Before the call, the values to be passed in are in X19, X20 and X21 and after the call, the return value should be moved from where it is returned to X22.

Just do the basic call, don't worry about storing values of registers X19-X22 on the stack.

image text in transcribed

D Question 1 10 pts Write the LEGv8 assembly code to call a procedure with the following prototype long long int my_procedureClong long int a, long long int b, long long in t c) Before the call, the values to be passed in are in X19, X20 and X21 and after the call, the return value should be moved from where it is returned to X22. Just do the basic call, don't worry about storing values of registers X19-X22 on the stack. Instruction Description Copy the value of 'a' into the appropriate procedure parameter register. Copy the value of 'b' into the appropriate procedure parameter register. Copy the value of 'c' into the appropriate procedure parameter register. Make the call to 'my_procedure. Copy the returned value into the appropriate register

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

Transactions On Large Scale Data And Knowledge Centered Systems Iv Special Issue On Database Systems For Biomedical Applications Lncs 6990

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Christian Bohm ,Johann Eder ,Claudia Plant

2011th Edition

3642237398, 978-3642237393

More Books

Students also viewed these Databases questions

Question

My opinions/suggestions are valued.

Answered: 1 week ago