A subroutine in marie assembly that multiplies two value

Assignment Help Basic Computer Science
Reference no: EM13165425

1)Write a subroutine in MARIE assembly that multiplies two values where the arguments for this subroutine are two pointers(each pointing to a value). The routine, multiply(a,b), performs *a x *b where a's value is the address storing the value being multiplied( *a uses a's contents to retrieve the value being multiplied), and b's value is the address storing the value being multiplied(*b uses b's contents to retrieve the value being multiplied). The program should compile and run as written.

 

Here are some requirements for submission:

 

Your program cannot use the following three MARIE instructions(you may use any other instruction other than these three): Load, Add, and store.

 

Comment on at least 80% of the code to show what the code is doing.

 

When submitting your code, you should hardcode a=2 and b=7, however your program should still work correctly if we change the value of a and b.

 

 

Reference no: EM13165425

Questions Cloud

Write a program to calculate a person''s net pay : Write a program to calculate a person's net pay after subtracting federal income tax.The program should ask the user to enter the person's name, social security number, gross pay, and the number of dependents.
Both the userid and the person''s full name : a report and not just a listing:The report might be created with awk but it should have a heading. it should list both the userid and the person's full name (a person's fullname can be found in /etc/passwd file)
Find the sixth maclaurin polynomial for sin x : Find the sixth Maclaurin polynomial for sin x and use Chebyshev economization to obtain a lesser-degree polynomial approximation.
What is the mass fraction of the metal in the metal sulfide : A metal sulfide is 71.6% metal by mass. What is the mass fraction of the metal in the metal sulfide?
A subroutine in marie assembly that multiplies two value : 1)Write a subroutine in MARIE assembly that multiplies two values where the arguments for this subroutine are two pointers(each pointing to a value). The routine, multiply(a,b), performs *a x *b where a's value is the address storing the value being ..
Java application that reads a date in numeric form : Designand write a java application that reads a date in numeric form from a set of three fields and displays it in English within a label. Use appropriate buttons. For Example:
Calculate the amount of energy as heat : calculate the amount of energy as heat by the freezing of 13.3 g of a liquid substance. given that the substance has a molar mass of 82.9g/mol and a molar enthalpy of fusion of 4.60 kj/mol.
Reportingmark a string of 2 to 4 upper case : Declare a structure named: Car containing: reportingMark a string of 2 to 4 upper case characters carNumber an int kind could be box tank flat or other loaded a bool destination a string with a destination or the word NONE Note: A destination is r..
Explain the earodynamics characteristics of margarine : explain the earodynamics characteristics of margarine firmness and coefficient of friction important in agricultural engineering research and development.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Explaining drain corporate budgets and ultimately profits

First of all it eliminates requirement of hardware, downloads and implementations which drain corporate budgets and ultimately profits. It takes companies only a third of the expenses that they will incurred to have their companies running.

  Describe how to develop users for sales organization unit

Describe how you would develop users for sales organization unit and how you can set up work groups in this particular situation.

  Tradeoffs involved to improve overall system performance

What are your thoughts on the tradeoffs involved when attempting to improve overall system performance. Provide examples where an increase in the performance of one resource.

  The graphics frame class and the drawable interface

This lab makes use of the GraphicsFrame class and the Drawable interface. Your missions is to create the class Airplane.

  Determine number of toes of chicken using calculations

If radix r utilized by chicken corresponds to its total number of toes, determine how many toes does chicken have on each foot?

  Encourage cooperation consistent with standards

Encourage cooperation from all, make it suitable to clean up, be consistent with standards - Who will put it away? Explain where will it be put away? When will it be put away?

  Prepare gui to create object-s processing methods

Create the object-oriented design for system which maintains tracks of your CD and DVD collection. Prepare GUI which will create objects and give access to each object's processing methods.

  Explaining company-s internal operations

A company's internal operations and its relationship with suppliers and other busienss partners are frequently_________.

  Advantages and disadvantages of grassroots computing

Discuss how grassroots computing changes the way software is designed, developed, tested, and maintained in a typical organization. What are the advantages and disadvantages of grassroots computing?

  Prove that machine precision as bound for relative round off

Prove that machine precision (epsilon) calculated by mathlab's eps function can be utilized as a bound for relative round off.

  What does it mean to spawn a process?

1. Process can be in different states to allocate the resources better. List the symbol and meaning for each of these states

  Algorithm beginning of new talk-time-stamps of rtp packets

Explain the algorithm which uses sequence numbers and time stamps of RTP packets to show the beginning of new talk spurt?

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