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

Problemyou have to write a subroutine assembly language

Problem: You have to write a subroutine (assembly language code using NASM) for the following equation. DX= (AX 2 + (AX-1) + 2*(AX+2))/2 Note: You cannot use MUL or DIV instructions, you have to perform multiplication an ...

Project marie start code at bottom of Project MARIE Start code at bottom of document 1.

Project MARIE Start code at bottom of document 1. Introduction The objective of this project is to reinforce your understanding of computer organization, instruction set architectures, and assembly language. You will acc ...

Questions statementyou have to write a subroutine assembly

Questions Statement You have to write a subroutine (assembly language code using NASM) for the following equation. DX= (AX 2 + (AX-1) + 2*(AX+2))/2 Note: You cannot use MUL or DIV instructions, you have to perform multip ...

Questions statementyou have to write a subroutine assembly

Questions Statement You have to write a subroutine (assembly language code using NASM) for the following equation. DX= (AX 2 + (AX-1) + 2*(AX+2))/2 Note: You cannot use MUL or DIV instructions, you have to perform multip ...

Assembly languagelab assignmentin this lab we will write an

Assembly Language Lab Assignment In this lab we will write an assembly program to implement a Finite State Machine (FSM) that recognizes hexadecimal integer constant that conforms to MASM syntax. The hexadecimal constant ...

Binary is a numer system used by computers it consists of

Binary is a numer system used by computers. It consists of only two digits, 0 and 1, which represent off and on. In decimal numbers, there are ten digits, 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9. When you write 247 in decimal, ...

Assembly language labfibonacci numbers are integers 0 1 1 2

Assembly Language Lab Fibonacci numbers are integers 0, 1, 1, 2, 3, 5, 8, 13, 21 ... If function fib(n) represents the nth Fibonacci number, we have fib(n) = fib(n-1) + fib(n-2) for n > 2, and fib(1) = 0, fib(2) = 1. The ...

  • 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

WalMart Identification of theory and critical discussion

Drawing on the prescribed text and/or relevant academic literature, produce a paper which discusses the nature of group

Section onea in an atwood machine suppose two objects of

SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless

Part 1you work in hr for a company that operates a factory

Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl

Details on advanced accounting paperthis paper is intended

DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac

Create a provider database and related reports and queries

Create a provider database and related reports and queries to capture contact information for potential PC component pro