CSC 3501 Chapter : Assignment2

34 views2 pages
15 Mar 2019
School
Course
Professor

Document Summary

In this assignment, you will write a basic ia32 assembly routine using gnu assembly. First, create the directory prog2, which will be used for submission. Change to this directory, and issue the following command to get the files you need: cp ~cs3501_lee/cs3501_f15/p2/* . View and understand the provided makefile and main. c so that you can write your own in the future. 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: return i + j, set *k = 5 * (*k); It is not allowed to use any multiplication or division instructions: 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 credits for using conditional jumping.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions