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:00
Determine whether the following careers would require training or college.
Answers: 1
question
Computers and Technology, 22.06.2019 21:50
Given int variables k and total that have already been declared, use a while loop to compute the sum of the squares of the first 50 counting numbers, and store this value in total. thus your code should put 11 + 22 + 33 + + 4949 + 50*50 into total. use no variables other than k and total.
Answers: 2
question
Computers and Technology, 23.06.2019 01:40
You have a linux system that has a 1000gb hard disk drive, which has a 90gb partition containing an ext4 filesystem mounted to the / directory and a 4gb swap partition. currently, this linux system is only used by a few users for storing small files; however, the department manager wants to upgrade this system and use it to run a database application that will be used by 100 users. the database application and the associated data will take up over 200gb of hard disk space. in addition, these 100 users will store their personal files on the hard disk of the system. each user must have a maximum of 5gb of storage space. the department manager has made it very clear that this system must not exhibit any downtime as a result of hard disk errors. how much hard disk space will you require, and what partitions would you need to ensure that the system will perform as needed? where would these partitions be mounted? what quotas would you implement? what commands would you need to run and what entries to /etc/fstab would you need to create? justify your answers.
Answers: 3
question
Computers and Technology, 23.06.2019 06:30
How do you write an argumentative essay about the importance of free enterprise ?
Answers: 1
You know the right answer?
Language: i382 assembly. me with the following program:

in this assignment, you will...
Questions
question
Mathematics, 29.07.2019 09:30
Questions on the website: 13722359