Write a hack assembly program

Assignment Help Programming Languages
Reference no: EM133140443

SIT111 Computer Systems - Deakin University

I/O-Handling Program in Hack Assembly

Overview

Hack assembly programs (*.asm code) can manipulate registers, RAM, and I/O devices in the Hack Computer. In this task, you will be using Hack assembly to manipulate the screen, depending on the keyboard input.

Task requirements

a. Go through week 7 class materials on Cloud Deakin & complete the problems in week 7 active learning sessions, so that you get an understanding of how to complete this task.
b. Read the task instructions.

Task Instructions

1. Using your knowledge gained from the learning materials and learning sessions in week 7, write a Hack assembly program Fill.asm to blacken the entire screen, depending on the keyboard input.
- When a key is pressed (any key), the entire screen should be black, that is, the program should set every pixel to black. When no key is pressed, the screen should be cleared (set to white).
- This program runs an infinite loop that listens to the keyboard input.
- You may choose to blacken and clear the screen in any spatial order, as long as pressing a key continuously for long enough will result in a fully blackened screen and not pressing any key for long enough will result in a cleared screen.
- This program has a test script (Fill.tst) but no compare file-it should be checked by visibly inspecting the simulated screen.

2. Use the provided test scripts in task resources to test your implementation via the CPU Emulator tool, as shown in the lecture videos. There is a manual test script (Fill.tst) without a corresponding compare file, where you need to check the simulated screen visually for correct behaviour. Use the FillAutomatic.tst file to do automated testing.

3. In a document, explain how you arrived at the solution (1 page max).

Reference no: EM133140443

Questions Cloud

Shortage of medical personnel : With the shortage of medical personnel and the increased need for additional help in the healthcare system in the U.S. during the COVID19 pandemic, what are you
What the projected after-tax cash inflow generated : The firm is in the 40% tax bracket. The net book value (NBV) of the investment at the beginning of each year. What the projected after-tax cash inflow generated
Examine the use of the various organizing principles : Examine the use of the various organizing principles for a speech.
Diversity issues and provisions : List 3 major federal acts regarding diversity issues and their provisions
Write a hack assembly program : write a Hack assembly program Fill.asm to blacken the entire screen, depending on the keyboard input
Prepare income statements for each of these two years : The company's $31 per unit product cost using absorption costing consists of the following. Prepare income statements for each of these two years
What is the definition of a weakly stationary process : What is the definition of a weakly stationary process and What are three advantages of constructing a panel of data
What is the amount of fixed costs : Janet sells a product for $6.25 per unit. The variable cost per unit is $3.75. Janet's breakeven units are 35,000. What is the amount of fixed costs
What volume of monetary sales is required to earn : Assume the following cost behaviour data for Portrait Company: Sales price $18.00 per unit. What volume of monetary sales is required to earn

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a program that converts english units to metric

Write a unit conversion program that converts English units to Metric using the conversion table given above. Ask the user from which unit they want to convert ( oz, lb, in, ft, mi) and which unit they want to convert to (g, kg, cm, and km).

  Create an appropriate folder structure for VS Code

COMP 392 Advanced Graphics Assignment - Using Geometry, Material and Lights to simulate our solar system. Create an appropriate folder structure for VS Code

  Write a program to go through your address book

Everyone has at least one friend who always remembers everyone's birthday. Write a program to go through your address book and print the names and phone numbers of all people who have birthdays on that day, so you can give them a call.

  Write a program that allows a user to enter a string

Write a program that allows a user to enter a string containing a day of the week (`Sunday', 'Monday', `Tuesday', etc.), and uses a switch construct to convert.

  Build web applications using ajax technologies

Develop a better understanding of building web applications using Ajax technologies and ShopOnline allows sellers to list items for selling and buyers to bid for the items based on the English Auction strategy, which is a popular strategy used in m..

  Write the standard sql query to retrieve names

write the standard SQL query to retrieve the Name and Phone Number of customers whose name begins with 'S'.

  Write a program that reverses a text file

Write a program that reverses a text file by using a stack. The user interface must consist of 2 list boxes and 3 buttons. The 3 buttons are.

  Within a computing investigation

Within a computing investigation, the ability to perform a series of steps again and again to produce the same results is known as ???a. repeatable findings

  Pseudocode that will generate reports from data files

Develop a mock-up of each of these reports, and get customer approval of these mock-ups. Write pseudo code that will generate these reports from the data files, using a CASE tool;

  Develop logic for program to read customer records

Develop the logic for a program that reads in 100 customer records and stores the first and last name and total purchases in three parallel arrays.

  Explain the use of the of sql keyword select

Explain the use of the GROUP BY keyword. Include an example based on the CUSTOMER table from the General Sales database.

  Create an xml file with markup tags

Create an XML file with markup tags and some sample data to represent a list of invoices. Include the XML tags for two invoices in the list.

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