Write compact code to avoid running out of memory

Assignment Help Computer Engineering
Reference no: EM131483472

Run the program. Wait for the lift window to appear then click the UP button in the lift window. The lift UP motor is then turned on and the lift will rise until it crashes into the top of the shaft, even if you stop your program. Click the "Repair Crashed Lift" button to restore the lift window.

Note the use of AND to clear a single bit without affecting other bits and OR to set a bit without affecting other bits.

Read the full capabilities of the lift in the Tutorial section on Peripheral Devices.

Each step below adds functionality to the lift. Complete as many steps as you can, saving your program in a different file at each step (take care not to overwrite previous steps). Don't miss out steps and try write the final program in one go or you will have nothing to submit if you fail.

You will need to write compact code to avoid running out of memory. You must not store code in locations reserved for the memory mapped display, [C0] to [FF]. If you use procedures or interrupt routines, you must not store code in locations used by the call stack, [BF] downwards, or your code will be overwritten at run time.

You may use any of the techniques you learned in the tutorials.

Discuss ideas and techniques with colleagues but do not copy code from each other or from the Internet. We will check for plagiarism.

Marks will be awarded for each step successfully completed and for correct functionality. Programs which do not assemble will receive a zero mark. Programs which do not function will receive a zero mark.

Coursework

Modify your program to:

1. Detect when the lift nears the top of the shaft then turn off the motor before it crashes.
(If you have to make your simulation run Faster to avoid crashing before the limit can be detected, you should consider restructuring your code)

2. Detect a click of the DOWN button then turn on the DOWN motor.
(You may allow the lift to crash into the bottom of the shaft)

3. Detect when the lift nears the bottom of the shaft then turn off the motor before it crashes.
(It should now be impossible to crash the lift no matter when or how many times the UP or DOWN buttons are clicked)

4. Display the lift status on the memory mapped display starting at [C0] without crashing the lift.
(Lift status must be exactly: BOTTOM or UP or TOP or DOWN)

5. Cause the lift to return to the bottom of the shaft immediately if the Enter key (En) is pressed on the numeric keypad peripheral device.
(After returning to the bottom of the shaft, the lift must operate normally)

Reference no: EM131483472

Questions Cloud

Political changes and banking reforms : People will have to work longer, spend less, and forego essentials. This could also lead to political changes and banking reforms.
Describe the three categories of information : Characteristics of the area of a proposed highway location that can be assembled in the office prior to any field survey activity.
Consumers prefer the taste of their diet product : A soft-drink company has determined in taste tests that consumers prefer the taste of their diet product when sweetened with Splenda in comparison to Equal.
Chinese company huawei should step into american market : Write a article to improve your strategy by using some tools such as SWOP analysis and Porter's Five forces.
Write compact code to avoid running out of memory : Cause the lift to return to the bottom of the shaft immediately if the Enter key (En) is pressed on the numeric keypad peripheral device.
Modern translation comparison : Select three modern translations of the Bible to compare with one another: (See "Finding Your Translations" below.)
What is one benefit to business government budget in surplus : Since 1950 the federal government has run a surplus on average roughly 1 year in each decade. Why is it so difficult for the federal government to run a budget.
Review the strategic objectives : In Session 1, you were asked to read CCU's Strategic Objectives. Review the strategic objectives again in light of what we have talked about.
What determines the inflationary impact of budget deficits : What determines the inflationary impact of budget deficits?

Reviews

Write a Review

Computer Engineering Questions & Answers

  How many have to be recycled

The bolts have a mean diameter of 1.000 cm, normally distributed with standard deviation of 0.010 cm - a bolt and a hole are randomly selected from supplies of parts with these characteristics.

  Select the most important component of an e-r model

Select the most important component of an E-R model and explain your reasons for choosing it.

  Questionconsider a system with 2 multiprocessors with

questionconsider a system with 2 multiprocessors with following configurations-a machine 1 a numa machine with 2

  Examine the challenges of developing applications that run

assess the effectiveness and efficiency mobile base applications provide to capture geolocation data and customer data

  Developing the lan network for a company

You have been asked to develop a LAN with operation over the distance of around 100m. Compare and contrast the twisted pair cable, fiber-optics, and wireless for this application.

  Question 1 explain the terms technique and tool and then

question 1 explain the terms technique and tool and then describe some of the techniques and tools that you used in

  Make a `show me'' button that displays the number

Write down a GUI program that is a game to be played by the user. A new employee is working on a classified mission and the program will randomly pick an expected profit to be guessed by the user. The program must randomly select a number within r..

  Provide an overall background of the topic

Provide an overall background of the topic. Include any comparison or contrast of additional System Analysis and Design concepts or technologies that we have discussed in the course or that you have read about.

  What benefits does active directory provide for managing

parsons lights manufactures natural lighting fixtures sold throughout north america. the users in the manufacturing and

  Computer security is not an issue for organizations alone

computer security is not an issue for organizations alone. anyone whose personal computer is connected to a network or

  What is a work breakdown structure and how is it used

Discuss the traditional and object oriented approach. How are they different? Which would you prefer and why? How does the Agile Development approach fit? What is a Work Breakdown Structure and how is it used?

  Make a preliminary erd for a symphony orchestra

CONCERT SEASON The season throughout which a series of concerts will be performed. Identifier is Opening_Date, which includes Month, Day, and Year.

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