Hack assembly to change and store values in registers

Assignment Help Programming Languages
Reference no: EM133143813

Multiplication 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 change and store values in registers and RAM, and carry out some arithmetic operations.
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 Mult.asm to multiply two integer values.

2. The inputs of this program are the current values stored in R0 and R1 (i.e., the two top RAM locations).

3. The program must compute the product R0*R1 and store the result in R2. Assume that R0>=0, R1>=0, and R0*R1<32768. Your program need not test these conditions, but rather assume that they hold.

4. Use the provided Mult.tst and Mult.cmp test scripts in task resources to test your implementation via the CPU Emulator tool, as shown in the lecture videos.

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

6. Upload the code and document to OnTrack

Reference

Nisan, Noam, and Shimon Schocken. The Elements of Computing Systems : Building a Modern Com- puter from First Principles MIT Press, 2005
Floyd, L., Thomas. Digital Fundamentals. Prentice-Hall International, 2003

Reference no: EM133143813

Questions Cloud

Explain the shareholders recommendations and observations : Gordon Nixon makes a point of escaping Canada's frigid winter each January for a Caribbean cruise. But the excursion is more work than pleasure for Royal Bank o
Describe the general model of problem-solving : Describe the general model of problem-solving presented in the text. What are the three main phases and the different analysis steps involved?
Develop and evaluate and action plan : To develop and evaluate and action plan that address the safety of children's environments.
Conducting qualitative analysis : Why is Nvivo software helpful in conducting qualitative analysis? What did most researchers find challenging in using the software?
Hack assembly to change and store values in registers : Test scripts in task resources to test your implementation via the CPU Emulator tool, as shown in the lecture videos
Describe attributes of high-quality early childhood program : Prepare a two-paragraph essay in which you identify and describe the attributes of high-quality early childhood program. Explain how the need to improve program
Scheduling appointment and telecommunication : Research office protocol for hosting international visitors, such as visitors from Canada, Malaysia, Singapore, Indonesia, etc. (choose one country only).
Project report in class for evaluation of feasibility : Present the project report in class for evaluation of feasibility. The students need to prepare maximum 20 PPT SLIDES and will allow 7 minutes to present
Select international market for australian product : Select international market for Australian product/service or international product/services for Australian market

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