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

  Determine relation of m and n-existence of a hash function

Determine the most general relation of m and n that guarantees the existence of a hash function in H that causes no collision when hashing [n] into [m].

  Write down the vbscript code that employs a do until loop

question 1. write the vbscript code that uses a do until loop to display all of the integer values stored in the array

  How many disk i-o operations needed to read contents

How many disk I/O operations might be need to read contents of small local file at /a/b/c? suppose that none of disk blocks is presently being cached.

  Short paper on three-tiered architecture

Submit a report for the CIO about three-tiered architecture. The organization has continued to grow, and the architecture of the existing database needs to be changed to increase performance, scalability, and reliability. Your CIO has asked you to..

  Write program take input and test scores

I need a program that allows me to... 1. Input students test scores(Tests, Quizzes, Classwork, and Homework) stored in dynamically declared arrays and PPS weights given to each score

  Create pivot charts

Excel's multiple worksheet abilities can do all of the following EXCEPT. In Excel, which of the following would you perform to group adjacent worksheets

  Design the static method below to count

Design the static method below to count and return the frequency of each digit in the array of strings.

  Describe a file system

Theory-long answer question. Describe how a file system could be implemented using a collection of inodes and some variant of a B tree. 500-1000 words. Be sure to consider: unallocated space, bad allocations, lost and found, root directories, s..

  Explain how this impacted other levels of the organization

Explain how this impacted other levels of the organization

  Write a program that prompts the user to enter an integer

Write a program that prompts the user to enter an integer, n, and the n floating-point numbers. As the numbers are read, the program will calculate the average of the positivie numbers.

  Social-ethical issues in information systems

Write a report about social and ethical issues in information systems.

  Flexibility to identify many different information systems

The case study company has provided you with the flexibility to identify many different information systems that are used by the employees. Some systems need strict access control while others should be available to everyone.

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