Write an assembly code that compute the factorial of 3 numbers in variable num1 ,num2 and...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write an assembly code that compute the factorial of 3 numbers in variable num1 ,num2 and num3 and store the results in variable fact1,fact2 and fact3,(Hint:this all in one program not in separate programs) For example num1-3, num2=5 and num=6 Then fact will be equal 6,fact2 will be equal 120 ,fact3 will be equal 720 Write an assembly code that compute the factorial of 3 numbers in variable num1 ,num2 and num3 and store the results in variable fact1,fact2 and fact3,(Hint:this all in one program not in separate programs) For example num1-3, num2=5 and num=6 Then fact will be equal 6,fact2 will be equal 120 ,fact3 will be equal 720
Expert Answer:
Answer rating: 100% (QA)
section data num1 db 3 num2 db 5 num3 db 6 fact1 db 0 fact2 db 0 fact... View the full answer
Related Book For
Digital Systems Design Using Verilog
ISBN: 978-1285051079
1st edition
Authors: Charles Roth, Lizy K. John, Byeong Kil Lee
Posted Date:
Students also viewed these programming questions
-
Design a Java class that represents a cache with a fixed size. It should support operations like add, retrieve, and remove, and it should evict the least recently used item when it reaches capacity.
-
In this question you will be asked to reflect on a project you have been involved in or observed, in which a design evolved, or could have evolved, through applying a theory of user behaviour. You...
-
Modesto Trading Berhad has recently appointed Messrs. Suresh Kumar & Co., Chartered Accountants, to audit the companys financial statements for the year ended 30 June 2021. You are assigned by...
-
On April 1, 2017, Mendoza Company borrowed 500,000 euros for one year at an interest rate of 5 percent per annum. Mendoza must make its first interest payment on the loan on October 1, 2017, and will...
-
Consider this simplified balance sheet for Geomorph Trading: a. What is the company's debt-equity ratio? b. What is the ratio of total long-term debt to total long-term capital? c. What is its net...
-
Consider PowerBar, the strategy for which is summarized in the PowerBar case. What implications for the culture, structure, systems, and people would you suggest given the nature of the product and...
-
Joe Henrys machine shop uses 2,500 brackets during the course of a year. These brackets are purchased from a supplier 90 miles away. The following information is known about the brackets: Annual...
-
17. In many cases, a worker's hourly wage depends on the number of hours worked. If a certain number of hours is reached, the pay rate beyond that point increases. When working beyond a certain...
-
Given two arrays each of length n, arr1, and arr2, in one operation, any two elements of an array can be swapped. This can occur any number of times. Find the maximum possible sum of i*(arr2[1]-...
-
What is the probability of drawing a red king from a poker deck (no jokers) on a single draw? 1/13 1/52 1/4 1/26 2/13
-
19 You aim to buy a new car in five years' time. The car will cost you $32,000. Interest rates are 6%. How much should you save a month in order to have the right amount of money available? (3) 20...
-
Hexose and the formation of the disaccharide Maltose. Include reference to the Dehydration Synthesis reaction and the formation of the alpha 1 - 4 glycosidic bond. Explain the difference between...
-
Compare SQL and NoSQL database systems on 3 criteria. Can you will determine the 3 criteria you will use for comparison. Criteria SQL NoSql
-
What type of dependency relationship does "Harden Foundation Cement" have with "Assemble Shed"?
-
The gravitational force between two volleyball players is 3.510 7 N . If the masses of the players are 65 kg and 73 kg , what is their separation? Express your answer to two significant figures and...
-
Claris Chemicals Inc. produces three industrial cleaners out of a common process; Cleaner A, Cleaner B and Cleaner C. All products are sold at split-off. The company currently uses the physical...
-
What are some of the possible sources of information about a company that could be used for determining the companys competitive stance?
-
A simple binary counter has only a clock input (Ck 1 ). The counter increments on the rising edge of Ck 1 . (a) Show the proper connections for a signal En and the system clock (CLK), so that when En...
-
What MIPS instruction do the following hexadecimal (hex) numbers correspond to? If it is not any instruction shown in Table 9-7, denote it as an illegal opcode. (i) 33333300 (ii) 8D8D8D8D (iii)...
-
Four RAM memories are connected to CPU busses as shown here. Assume that the following RAM component is available.module SRAM(cs-b, we-b, oe-b, address, data);input cs-b,we-b,oe-b;input[14:0]...
-
Describe a job in which you think an employee recognition program might be an effective means for changing and improving employee behaviour. Explain how you would design the program and how you would...
-
Describe a situation in which you think an employer could use organizational behaviour modification and an employee recognition program to improve or correct employee behaviour. Can you anticipate...
-
A supervisor in a textile factory observes that one of her employees is violating a safety rule that could result in severe injury. What combination of reinforcement, punishment, and extinction could...
Study smarter with the SolutionInn App