Computers and Technology

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

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 16:30, ahmedislife
Select the correct answer. larry finds it easy to run legacy programs and applications in a virtualized environment. how does the virtualization provider make this possible? a. combines workloads of several underutilized servers to fewer machines b. installs and runs different versions of an operating system on the same computing device c. moves virtual machines from one server to another server at a different location d. streamlines and automates management tasks
Answers: 1
image
Computers and Technology, 22.06.2019 04:00, yolo1430
Acetylene is a gas which burns rapidly on its own, and is considered highly explosive. a) true b) false
Answers: 2
image
Computers and Technology, 22.06.2019 09:30, eiza666
My mom and i are moving and we don’t have wifi for the next week, i want to know if using a using a hotspot with unlimited data is better than using regular wifi. i’m considering cost, speed, and data sacrifices.
Answers: 1
image
Computers and Technology, 23.06.2019 09:10, babyskitt
Effective character encoding requires standardized code. compatible browsers. common languages. identical operating systems.
Answers: 1
Do you know the correct answer?
Language: i382 assembly. me with the following program:

in this assignment, you will...

Questions in other subjects:

Konu
Geography, 18.01.2021 04:30
Konu
Mathematics, 18.01.2021 04:30
Konu
Mathematics, 18.01.2021 04:30
Konu
Mathematics, 18.01.2021 04:30
Konu
Spanish, 18.01.2021 04:30