logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Eva EdwardsMathematics
(5/5)

658 Answers

Hire Me
expert
Anthonius HermanusManagement
(5/5)

774 Answers

Hire Me
expert
Rashmi AgnihotriComputer science
(5/5)

584 Answers

Hire Me
expert
Lokesh RanaStatistics
(5/5)

908 Answers

Hire Me
Assembly Programming
(5/5)

Write an assembly language program which takes two integers, A and B,

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

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 (you can hard code once at the beginning). 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:  Please put the following three items inside a .zip file and submit the .zip file

• asgn7.s (includes all the code)

• Makefile

• Independent completion form

RUBRIC:

• 45%: 15% per working problem. (Each missing problem is minus 33%)

• 15%: 5% per result of problem printed.

• 10%: Use the same A and B variables for all expressions. This means the variables A and B should just be entered once before the first calculation (either hard coded or via user input), and used throughout all the calculations without re-entering, or re- hard-coding the number. Consequently, it will be the same value in each calculation.

• 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 Makefile 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 and will result in an automatic zero.

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme