Problem:
Write an assembly language program which takes two integers, A and B, and computes the following expressions. You must use the same variables for A and B throughout all three expressions . The result of each problem should be printed to the terminal.
1) A * 5
2) (A + B) – (A / B)
3) (A – B) + (A * B)
TURN IN: the following three items inside a .zip file and submit the .zip file
asgn7.s
Make file
Independent completion form
RUBRIC:
45%: 15% per working problem.
15%: 5% per result of problem printed.
10%: Use the same A and B variables for all expressions.
30%: Document all code.
o Comments must be thorough and correct but not redundant.
o Explain both what you’re doing and why you’re doing it.
10% bonus: Take user input for A and B. Must meet all the criteria above to be eligible for this bonus.
10% bonus: Create all three functions as functions. Be sure to handle caller-saved and callee-saved register saving appropriately. Must meet all the criteria above to be eligible for this bonus.
Code that does not compile using the Make file on Vulcan will result in an automatic zero.
NOTE: Writing C code and converting it into Assembly and submitting the compiler generated Assembly is STRICTLY PROHIBITED.
Last Completed Projects
topic title | academic level | Writer | delivered |
---|