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 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