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 22:30
Which of the following factors would your hypothetical supervisor look at when deciding whether to test a biological material sample for dna? the amount of other evidence you have implicating a suspect in a crime the annual budget for the crime lab both of the above none of the above; you would almost always order a test
Answers: 3
question
Computers and Technology, 23.06.2019 21:20
In microsoft word, when you highlight existing text you want to replace, you're in              a.  advanced mode.    b.  automatic mode.    c.  basic mode.    d.  typeover mode
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
Janice usually works on a particular workbook that contains all business related data. she decides to keep a backup of all the data in a separate workbook. she opens a new workbook to transfer the data. which option should she use to copy all the data from one workbook to another workbook?
Answers: 1
question
Computers and Technology, 24.06.2019 23:30
Adrian has decided to subscribe for a new internet connection. he wants a high speed connection so that he can stream video content smoothly. which access technology would you advise adrian against using?
Answers: 1
You know the right answer?
Language: i382 assembly. me with the following program:

in this assignment, you will...
Questions
question
Geography, 19.07.2019 01:00