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

  Development of the current strategic potential of airline

Evaluate the organisation's current external and internal strategic position

  Create a form using the form tool

Courtyard Medical Plaza wants to add a form and a report to its database. To ensure consistency, the starting file is provided for you. Create a blank form and modify the form in Layout view.

  Write program to calculate and output tuition

Write a C++ program to calculate and output tuition. Prompt user for number of credits taken and type of classes ('U' for undergraduate - $380 per credit hour, or 'G' for graduate.

  Build a console application

You are required to build a console application where you will be asked to read various inputs from the keyboard - What kind of information you would like

  Program to find sum-difference of two complex numbers

Program should ask user to enter two complex numbers and it automatically finds it sum, difference, coefficient, product conjugate.

  Write out pseudocode using given information

Write a program that reads in values from the user and if each value is not a duplicate of a value already read in, then display those values.

  Describe the elements of effective programming style

ISY1003 Foundations of Programming Assignment - Decision Structures and Boolean Logic, Repetition, Australian Institute of Higher Education, Australia

  Write method multiple to determine for pair of integers

Write a method multiple which determines, for pair of integers, whether second integer is a multiple of first. The method must take two integer arguments

  Discuss when scripting should be taught to individuals

Discuss when scripting should be taught to individuals who are learning software programming and discuss the advantages and disadvantages of doing so at specific times in their learning process.

  Write a program to calculate the terms of sequence of number

This programming project involves writing a program to calculate the terms of the following sequence of numbers: 0 1 2 5 12 29 ... .

  Automate the task of invigilator allocation

you are required to carry out the following to automate the task of invigilator allocation which may not be limited to one's own department.

  Develop a java program that records house prices

ITECH1000 Programming Assignment. develop a Java program that records house prices for an area then compares the deposit required

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