The program now generates paper tape output this format is


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.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: The program now generates paper tape output this format is
Reference No:- TGS01245125

Expected delivery within 24 Hours