subject

Language: i382 assembly. me with the following program:

in this assignment, you will write an assembly program in the provided file prog2.s. the file will implement a function with the prototype:

int prog2 (int i, int j, int *k, int a[5], int *l)

this function will do three things:

`1.) return j - i.

2.) set *k = 5 * (*k), but it is not allowed to use any multiplication or division instructions.

3.) set *l = a[0] + a[1] + a[2] + a[3] + a[4];

you are not required to use conditional jumping for this task but you may get extra credit for using conditional jumping. also note that when you modify any calle-save register (%ebx, %esi, or %edi), you need too save and restore its old value.

make sure to write a comment for ea

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:30
Which of these options are the correct sequence of actions for content to be copied and pasted? select content, click the copy button, click the paste button, and move the insertion point to where the content needs to be inserted. click the copy button, select the content, move the insertion point to where the content needs to be inserted, and click the paste button. select the content, click the copy button, move the insertion point to where the content needs to be inserted, and click the paste button. select the content, move the insertion point to where the content needs to be inserted, click the copy button, and click the paste button.
Answers: 3
question
Computers and Technology, 22.06.2019 23:00
Which type of tab stop is most for weights and measurements?
Answers: 1
question
Computers and Technology, 23.06.2019 01:00
Let r be a robotic arm with a fixed base and seven links. the last joint of r is a prismatic joint, the other ones are revolute joints. give a set of parameters that determines a placement of r. what is the dimension of the configuration space resulting from your choice of parameters?
Answers: 3
question
Computers and Technology, 23.06.2019 13:50
Explain how email technologies enable the exchange of messages between users. find out the typical parts of an email address and explain each part.
Answers: 1
You know the right answer?
Language: i382 assembly. me with the following program:

in this assignment, you will...
Questions
question
Medicine, 26.01.2021 19:30
question
Physics, 26.01.2021 19:30
question
Geography, 26.01.2021 19:30