Assembly language program to simulate

Assignment Help Basic Computer Science
Reference no: EM13935803

ou are to write an assembly language program to simulate paper tape output from user supplied input

The program performs the following functions:

It first reads a number of decimal digits from the keyboard, with a maximum of 8 digits possible (and a minimum of one digit). Non-digits are

ignored, as well as input beyond 8 digits. You should count the number of digits, and also store them in an array for future reference. Examples:

138
53339
66666666

Input terminates when the RETURN character is typed, or when the maximum of 8 input digits has been reached.

The program now generates paper tape output. This format is based on the well known 'Morse Code', which consists of 'dots' and 'dashes'. On paper tape, a 'dash' is represented by a hole in the bottom half of the paper, and a 'dot' by a hole in the top half. The program
simulates the hole by printing the letter 'o'.

The Morse Codes for the digits are as follows:

0 -----
1 .----
2 ..---
3 ...--
4 ....-
5 .....
6 -....
7 --...
8 ---..
9 ----.

The paper tape output for the number 138 would now be:

o ooo oo
oooo ooooo

Here are some hints on how to write the program.

Define the morse code as a series of consecutive dc.b statements. Since all codes have the same length of 5, it will be straightforward to
calculate where the start of each code can be found. For example, the morse code for the digit 2 starts 2*5 = 10 bytes from the start, and
occupies the next 5 bytes. YOU ARE NOT ALLOWED TO USE SEPARATE LABELS FOR THE INDIVIDUAL CODES (this leads to massive code duplication, and it will cost you a lot of marks).

The program is best implemented as two nested FOR loops. You will have to go through the input twice, once to print the dots and once to print the dashes, deciding at each position within each digit, whether an 'o' or a space needs to be printed.

Submission: Submit a SINGLE PDF FILE on Blackboard, containing both the program source code and documentation. DO NOT provide the source code in the form of screen dumps - this is very difficult to read and impossible to annotate properly. Instead, copy and paste the program from a text editor such as Notepad.

Reference no: EM13935803

Questions Cloud

How uva ltd can reduce economic exposure to exchange rate : Its sales to Thai customers are denominated in baht. Explain how UVA Ltd can reduce its economic exposure to exchange rate fluctuations.
Why do hcos strive for transformational styles : Why do high performing HCO's strive for transformational styles? Is this just the current fad or is there another that you would suggest
What is intermediate moisture food : List 20 antimicrobials used in food manufacturing and specify the maximum allowance of each one in food. What are bacteriocins, list 5 of them and provide examples of applications in foods.
How alright can reduce economic exposure to exchange rate : About 10% of Albany's operating expenses are in Australian dollars; all other expenses are in pounds. Explain how Alright can reduce its economic exposure to exchange rate fluctuations.
Assembly language program to simulate : The program now generates paper tape output. This format is based on the well known 'Morse Code', which consists of 'dots' and 'dashes'. On paper tape, a 'dash' is represented by a hole in the bottom half of the paper, and a 'dot' by a hole in the..
Aspects traits and attributes of leadership : Questions: A) What aspects traits and attributes of leadership are evident from analysing the speech? B) Identify and comment on how the speech is being articulated and delivered.
Find the discharge for free flow : A 3-inch diameter orifice cut in a thin orifice plate conveys flow from a deten- tion basin with water level at elevation 472.00 feet. The center of the orifice is at elevation 467.50 feet. Find the discharge for free flow.
Explain how a firm can hedge its translation exposure : Hedging translation exposure. Explain how a firm can hedge its translation exposure. Exchange rate effects on earnings. Explain how an MNC's consolidated earnings are affected when foreign currencies depreciate.
Leadership for the sustainability of the health system : Leadership for the Sustainability of the Health System: Part 1-A Literature Review. Health Workforce Australia.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Hardware r us" it consulting and managing firm

A star consultant from "Hardware R US" IT consulting and managing firm. Just graduated from APUS and this is your first critical job.

  System administrator for all valid input parameters

Prompt the system administrator for all valid input parameters.Ask if a wall needs to be sent, and if yes, send the message.

  Write the definition of a method

Write the definition of a method , isReverse , whose two parameters are arrays of integers of equal size. The method returns true if and only if one array is the reverse of the other. ("Reverse" here means same elements but in reverse order.)

  Create the users for the sales organization unit

Explain how you would create the users for the sales organization unit and how you can set up work groups in this particular situation

  The radar gun used by a police officer

The radar gun used by a police officer outputs a radar signal and measures the speed of the cars as they pass. However, when the officer wants to ticket an individual for speeding

  Connection between business and information system functions

Give a brief overview/answer of each: Involving individuals with various perspectives in system analysis and design activities and Connection between business and information system functions.

  Illustrate and draw the transformation for each case

Illustrate and draw the transformation for each case.

  Address of three double variables

Problem 1: Write and test a function that takes the address of three double variables as arguments and that moves the value of the smallest variable into the first variable, the middle value to the second variable, and the largest value into the t..

  Ways to send these postcards to friends

There are k types of postcards, each with limited amount. Let there be ai copies of i-th postcard. How many ways are there to send these postcards to n friends?

  The ph of an aqueous solution is a measure

Microsoft Word - HW#9.docx In chemistry, the pH of an aqueous solution is a measure of its acidity. A solution with a pH of 7 is said to be neutral, a solution with a pH greater than 7 is basic, and a solution with a pH less than 7 is acidic.

  Wikis are web-based tools that make it easy

Wikis are Web-based tools that make it easy for users to add, remove, and change online content. Employees at companies such as Intel, Motorola, IBM, and Sony use them for a host of tasks, from setting internal meeting agendas to posting docume..

  Audio and html5

HTML5 supports several formats of audio. However, there is no single format that is compatible with every browser. Analyze two different ways that this issue can be addressed. Select the best solution for this issue and explain why you chose it.

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