Preform basic math computations on the numbers

Assignment Help Assembly Language
Reference no: EM131243068

Program Description

Create a program called YourLastName_assignment3.asm. This simple program will print the following information to the command prompt screen as well as take in user input and perform some basic computations:

a. Print your full name on one line

b. Prompt the user to enter two numbers and retrieve this information on the same line.

c. Prompt the user to enter their favorite color and retrieve this information (user should be able to enter and store up to 6 characters, i.e. black, yellow, orange, red, etc.)

d. Prompt user for a negative number

e. Echo what was entered to the back to the screen

f. Preform basic math computations (+, -, *, /, %) on the numbers and print out the results (indented as seen below) do both signed and unsigned multiply.

- (See pdf page 43 and 44 of the Carter text for information on mul, imul, div, and idiv)

- Be sure to include tabbing and spacing as are in the example output below.

g. Print a blank line

h. Print out the statement with the first number entered shown both as signed, unsigned, and as a character.

i. Print out the statement with the negative number shown both as signed, unsigned, and as a character.

j. Print a blank line.

k. Print out a made up "Username" that consists of the information the user entered of the format color_num2num1.

l. Finally print out that the program reached a successful termination

For example, the output will look like the following (including tabs and output sentences):

Your name here

Please enter two numbers: number1 number2

Please enter your favorite color: color

Please enter a negative number: negNumber

You entered number1, number2, color, and negNumber.

The sum of number1 and number2 is result.

The difference between number1 and number2 is result.

The unsigned product of number1 and negNumberis result.

The signed product of number1 and negNumberis result.

The quotient of number1 and number2 is result with a remainder of remainder_result.

The first number, number1, holds the value unsigned_number1 if it is considered unsigned, and also represents the character number1_asCharacter.

The last number, negNumber, holds the value unsigned_negNumif it is considered unsigned, and also represents the character negNum_asCharacter.

Your made up Username is color_number2number1.

***Successful Program Termination***

Note: red text above implies user input to the terminal

Reference no: EM131243068

Questions Cloud

Explain market structure you would prefer for buying product : Describe which market structure you would prefer for buying products. Explain why and support your answer with the characteristics of that market.
Prepare an annotated bibliography with some of the articles : You will be required to prepare an annotated bibliography with some of the articles/books you plan to cite in your final project. A sample has been placed in the Resources section.
What alternative strategy might have prevented its decline : What alternative strategy might have prevented its decline? Provide your specific rationale for this alternative strategy (or these alternative strategies).
What are the possible reasons for ipo underpricing : How does a rights offering differ from a shelf offering? - What are the possible reasons for IPO underpricing? -What is the empirical evidence on the long-run performance of IPOs?
Preform basic math computations on the numbers : Create a program called YourLastName_assignment3.asm. This simple program will print the following information to the command prompt screen as well as take in user input and perform some basic computations.
Construct a coercive rights offering : Construct a coercive rights offering to raise $100 million in new equity. - How does your example change if you have no debt outstanding?
Different prices in different areas of the world : Publishers have traditionally sold textbooks at different prices in different areas of the world. As an example, a textbook that sells for $70 in the U.S. might sell for $5 in India.
Can the operations be performed in place : Develop a radix-3 decimation-in-time FFT algorithm for N = 3' and draw the corresponding flow graph for N = 9. What is the number of required complex multiplications? Can the operations be performed in place?
Discuss the financial results from your pro forma projection : Discuss the financial results from your Pro Forma projections. Include the net income results, breakeven analysis, and required expenses to commercialize your product or service.

Reviews

len1243068

10/15/2016 2:42:51 AM

I uploaded code so far and instructions their are mistakes in my code so far like the 2 number input part. had to convert my asm fiule to txt it wouldn't let me submit it

Write a Review

Assembly Language Questions & Answers

  Write a program which will give the calendar for 3 mnth

Need the following assignment assembled Using MASM and notepad ++ for windows 8086 processor write a program which will give the calendar for atleast 3 months starting from November 2011 to January 2012 including the days/dates

  Write a program called knapsack that solves knapsack problem

Write a program called knapsack.s that solves the 0-1 knapsack problem recursively. In the knapsack problem you have a knapsack that can hold W weight.

  In this project you will build an 8088 assembler the job

in this project you will build an 8088 assembler. the job of your assembler is to turn 8088 assembly code i.e. the

  Relative addressing mode is a special way

Relative addressing mode is a special way to specify operands. Which instructions are associated with the relative addressing mode? Why do you think it was called "relative" addressing mode? Hint: Use a search engine to find out about "portable code"

  Write assembly program print binary representation-integers

Write the assembly program called hw6_ex1, stored in file hw6_ex1.asm. This program must prompt user to enter signed 32-bit integer. Program must print out binary representation of the integer.

  Create a strcat procedure

Create a strcat procedure (like C's strcat function). Your procedure will be given the addresses (using the method presented in Chapter 8) of two string arrays.

  Compute the boolean expression a and b or c

Compute the Boolean expression ( A AND B) OR C for. Devise a way to interchange two variables A and B without using a third variable or register. Hint: Think about the EXCLUSIVE OR instruction.

  Write a function that accepts a char array

Write a function that accepts a char array, its size and a char to search for in the given array. Use PROTO, INVOKE and LOCAL keywords - Find four different ways to reset eax other than "mov eax, 0"

  Write a mips assembly language program

Write a MIPS assembly language program that prompts for a user to enter a series of floating point numbers and calls read_float to read in numbers and store them in an array. Then the program should display the array content on the console window. Th..

  Provide the rtl instructions

Provide the RTL instructions and the time steps that will facilitate the execution of the following assembly language instructions  LDA addr,x  STX addr,x

  Write a mips assembly language program to count

Write a MIPS assembly language program to count the number of 1s in a 32-bit word. Use assembly directives to initialize meaningful test data, make room for the result and use variable names within the code.

  Write an arm assembly function that takes an array

Write an ARM assembly function that takes an array of integers and insures that all entries are positive. Remember the initial integer in the array is at index zero.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd