Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

Ask Assembly Expert

prepare assembly code that performs each of these four tasks. Create a single assembly file (.asm) per task. 

For this assignment, you must create a Design Summary Document. For each part of the assignment, you must describe in English how your code works. A paragraph or set of bullet points for each part of the assignment will suffice. Submit this as a single document. Number each section corresponding to each part of the assignment.

Read the instructions carefully before attempting each problem.

1) Create a program that takes two single digit numbers from simple keyboard input and adds them together. Print the answer to the VDU.'

Requirements:

A) Your program must be capable of printing a two digit answer.

For ex, if the input is 8 and 9, the answer printed must be 17 (a 1 in one VDU memory slot, and a 7 in another beside it).

B) Your program must be capable of handling nonGnumeric character input. If an input character is not a number, reGprompt for input. Keep doing so until a valid character is entered (i.e. 0G9).
 
2) prepare a similar program, this time show the sum on the VDU as in the screenshot below.

167_VDU_1.jpg

Print the input numbers to the VDU as they are input, then print out the answer below the line.

1999_VDU_2.jpg

Requirements:

o Numbers must be displayed as they are input.

o Once all numbers are input, only then can you add them together and display the result.

o Again, your program must check if the input characters are valid.

o Use the DB and ORG directives to print the “G“ and “+” characters to the screen.

3) Create  a  similar  program  that  adds  two  2 digit  numbers  together.

2020_VDU_3.jpg

Requirements:

o The user must input the first number, rightGtoGleft, then the second number to be printed below the first as in the screenshot. After each digit is entered, print it to the screen. Hints:,

o In order to prepare a solution for this, think about how you add numbers on paper (“carry the one”).

o You are performing a repetitive task on each column of numbers. As such you should prepare a procedure that takes two numbers as input and prints the answer to the VDU.

o You should also prepare a procedure that gets input for each 2Gdigit number and prints it to the screen (digit by digit).

o For answers that are greater than 10 (0A in Hex), you may want to use a “carryOne” flag. (a memory slot that contains either a 1 or a 0).

4) Extend your program from part 3 to create an adder for two 8 digit numbers.

1228_VDU_4.jpg

User has input first 5 digits of the first number

79_VDU_6.jpg

User has input first 4 digits of second number

The program has completed.

Requirements:

o Because of memory constraints, you now must create two procedures to carry out repetitive tasks.

  • One procedure takes input from the keyboard and prints an 8Gdigit number to the VDU. This will be called twice – one for each number.
  • One procedure that takes two numbers, adds them, and prints the answer to the VDU (dealing with the “carry one” issue).

Assembly, Programming

  • Category:- Assembly
  • Reference No.:- M91042

Have any Question? 


Related Questions in Assembly

1write build and run an assembly language program that

1. Write, build, and run an assembly language program that displays 0 through 9 on the screen. You can only use the following data segment: message BYTE "0",13,10,0 2. Write an Assembly Language program that will write o ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate