Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please show all work! Posted full instructions in images below. Basic assembly code. Objectives: Learn how to write a basic assembly program that uses integer

Please show all work! Posted full instructions in images below. Basic assembly code.image text in transcribedimage text in transcribedimage text in transcribed

Objectives: Learn how to write a basic assembly program that uses integer arithmetic, manipulate registers, input simple numbers, output simple numbers and text, define constants and variables, and do simple if statements. You should submit your assignment as a single file to the Blackboard site portal for Assignment Number 4 Program Specifications: 1. 2. 3. Print out an introduction that includes: Your name, a title, and a brief description of this program. Prompt the user for two numbers and save them in two registers. Make sure the numbers are positive. Stop the program if either number is below the number1 and print out a message. Print out in order: 4. a. b. c. d. The equation and Sum of the two numbers The equation and Difference of the two numbers The equation and Product of the two numbers The equation and integer quotient and remainder of the division of the two numbers. You may assume that an attempt to divide by zero will not be made Format the output as shown in the example below. Print out a concluding message. e. f. Other Requirements: You should have a comment beside each instruction in the assembly program (or at a minimum a comment for a small group of related instructions) to help make your code more understandable. You should also have comments at the top of the file indicating your name, this course, and the assignment. For example: Other Requirements: You should have a comment beside each instruction in the assembly program (or at a minimum a comment for a small group of related instructions) to help make your code more understandable. You should also have comments at the top of the file indicating your name, this course, and the assignment. For example: Name: Joe Shmoe Class: CDA 3100 Assignment: #4 Read in two numbers and find The sum, difference, product, and the quotent/remainder Grading: (1) (2) (3) (4) (5) 10%-Proper MIPS instructions that assemble with no errors. 10%-Recognizes that a value below zero was input. 10%-Appropriate output format and messages. 10%-Appropriate comments in the code. 60%-Produces the correct results It is strongly suggested that you implement and test this assignment in stages, where each the possible scenarios and check the output. By implementing and testing the assignment in stages, you are more likely to receive partial credit if you are unable to entirely complete the assignment. Sample Program Run: Dr. David A. Gaitros, Teaching Faculty III Add, Subtract, Multiply and Divide two numbers Enter the first number: 20 Enter the second number: 5 20+5-25 20-5-15 20 5-100 20 5-4 rem 0 The program has stopped..may the force be with you

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions