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

  Three major information security threats

Write a 1,000- to 1,500-word essay on at least three major information security threats that a specific organization you choose faces today.

  Explaining mandatory access control implementation

How are Novell AppArmor and the Red Hat "targeted" SELinux policy similar? Is either a true Mandatory Access Control implementation. If not, explain why.

  Explaining straight-line depreciation method

Explain in scholarly detail how to carry out Straight-line Depreciation Method calculations.

  Why is internet an attractive marketing arena for business

One B2B marketer used a lot of silliness to increase its Web traffic tenfold and generate thousands of sales leads starting. Why is the Internet such an attractive marketing arena for businesses?

  Drawing crow-s foot erd using a specialization hierarchy

Given the following business scenario, create a Crow's Foot ERD using a specialization hierarchy if appropriate.

  Why supply-demand-equilibrium price different in short term

Price of product in short-term and long-term also describe why you believe supply, demand, or equilibrium price will be different, if at all, in short-term and long-term.

  Explain computer viruses spread by email or other methods

Explain computer viruses spread via email or by other methods. What negative consequences can they have on an organization's operations?

  Explain specific challenges of facing designer

Explain specific challenges of facing the designer, specifically with regard to limitations of hardware, software and interface design two paragraph each.

  Development of enterprise architecture-existing it resources

Discuss what concepts are important to share during this presentation in particular. Also discuss, in general, the relationship between development of enterprise architecture and existing IT resources and processes.

  First two training iterations of backpropagation algorithm

Consider a two-layer feedforward ANN with two inputs a and b, one hidden unit c, and one output unit d. This network has five weights (w,, web, wd, wdc, wdO), where w,o represents threshold weight for unit x

  Why software products has successful growth strategy

Software products like Linux be a successful growth strategy in "brutally competitive marketplace" in which it operates? Explain why or why not?

  Set of strings of balanced parentheses

Show that the set of strings of balanced parentheses is not defined by any regular expression. Hint: The proof is similar to the proof for the language E above. Suppose that the set of balanced strings had a deterministic finite automaton of m states

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