Assembly language program

Assignment Help Programming Languages
Reference no: EM13192458

Write a program called A2P1 to run in the LC-3 simulator. The program asks for the user to type in his or her UPI. Then the program asks for the age of the user and prints the UPI out that many times. Here is an example of input and what should be produced in the simulator's console window.

1085_Assembly language program.png

For Part I you may assume (in fact you must assume) that the input provided will always match what is expected. i.e. do not consider what would happen if the user makes a mistake entering data.

The program should work exactly like this:

The program displays "Enter your upi: ".

It then waits until the user has typed 7 characters (these get stored by the program). The characters typed by the user are shown on the console as the user types them. After the 7th character the console output goes to the next line automatically without the user having to type return/enter and displays "Enter your age: " 

It then waits until the user has typed a number (you may assume it will always be between 0 and 999) and has pressed return/enter.

Once again the characters typed by the user are shown (echoed) on the console as the user types them. Then the program prints the upi the same number of times as the user's entered age. Each upi appears on a separate line.

Reference no: EM13192458

Questions Cloud

What price-output combination would exist with profit : Suppose a natural monopolist has fixed costs of $24 and a constant marginal cost of $2. The demand for the product is as follows: Price (per unit) $10 $9 $8 $7 $6 $5 $4 $3 $2 $1 Quantity demanded (units per day) 0 2 4 6 8 10 12 14 16 18
Explain the chromium in the ore as chromium phospate : A 6.50 gram sample of an ore containing chromium is dissovled and then treated with an excess of Na3PO4 (aq), which precipitates out all of the chromium in the ore as chromium (III) phospate, CrPO4.
Organizational citizenship behavior : The willingness to go beyond one's job description without an obvious reward is called organizational citizenship behavior.
What is the area of the shaded sector in between : if the radius of a circle is 14 inches and the arc of the circle is 30 degrees. what is the area of the shaded sector in between?
Assembly language program : Write a program called A2P1 to run in the LC-3 simulator. The program asks for the user to type in his or her UPI.
Find the width of the box : A company wishes to manufacture a box with a volume of 24 cubic feet that is open on top and is twice as long as it is wide. Find the width of the box that can be produced using the minimum amount of material. Round to the nearest tenth, if necess..
What is the probability that the ball drawn is white : An urn contains a white balls and b black balls. After a ball is drawn, it is returned to the urn if it is white; but if itis black, it is replaced by a white ball from another urn. Let M(n) denote the expected number of white balls in the urn aft..
Calculate the volume of calcium hydroxide : Calculate the volume of 1.00 M nitric acid needed to react completely with 25.0mL of 1.84 M calcium hydroxide
Define contract be enforced under bargain theory of contract : The day after Thanksgiving, I've already invested time and money in training you, and don't have time to train a replacement; you suddenly realize you're in a strong bargaining position, and threaten to quit unless I raise your salary.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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