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 21:00
So im doing this school challenge and the teachers said whats the average text a student gets a day so i need to get about 20 in a day but dont know how can you guys 2163371293
Answers: 2
question
Computers and Technology, 23.06.2019 11:00
Sports and entertainment class, your goal is to increase attendance and make a profit for a game by getting your team on a winning track with total salaries less than $3,000,000
Answers: 3
question
Computers and Technology, 24.06.2019 14:00
In simple terms, how would you define a protocol?
Answers: 2
question
Computers and Technology, 24.06.2019 17:30
Match the following. 1. formatting that is applied when cell data meets certain criteria 2. borders with formats not found on the border tool 3. a shortcut bar that contains tools for commonly used formats 4. formats that can be applied to numbers conditional formatting custom borders format bar number formats
Answers: 3
You know the right answer?
Language: i382 assembly. me with the following program:

in this assignment, you will...
Questions
question
Mathematics, 19.04.2021 16:50
question
Mathematics, 19.04.2021 16:50
question
Engineering, 19.04.2021 16:50
question
Geography, 19.04.2021 16:50
Questions on the website: 13722362