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 December 15, 2017, Lisbeth Inc. (a U.S. company) purchases merchandise inventory from a foreign supplier for 50,000 schillings. Lisbeth agrees to pay in 45 days after it sells the merchandise....
-
An ideal gas, initially at 30(C and 100 kPa, undergoes the following cyclic processes in a dosed system; (a) In mechanically reversible processes, it is first compressed adiabatically to 500 kPa....
-
Auditors do not often have the luxury of testing 100 percent of the transactions and events underlying account balances or classes of transactions. More often, they rely on samples, thereby reducing...
-
The Nichols Electronics Corporation has been experiencing a steadily growing demand for its products. In order to meet this demand, a major expansion of production facilities is necessary. The...
-
9. Let x and y be real numbers. If 3+y3 = 400 and 2y+xy2 = 200 then find the value of x+y.
-
Assume it is Monday, May 1, 2020, the first business day of the month, and you have just been hired as the accountant for Alpine Company, which operates with monthly accounting periods. All of the...
-
In two pages, In order for products to be successful in global markets, considerable research must be conducted to ensure the product will meet the needs of locals. Marketers must modify the 4P's to...
-
In this scenario you and your colleagues have been appointed to plan a short presentation. This presentation aims to pitch a new service your agency has developed to a group of new clients. Reflect...
-
The arithmetic mean for the following distribution Class Intervals Frequency 7 1 5 3 is K 5-10 10-15 15-20 20 - 25 25 - 30 8
-
A rope is used to lower a 2.5 kg bucket into a well at an acceleration of -0.6 m/s 2 , where the negative sign indicates the downward direction. The well is 30 m deep, and the bucket starts from rest...
-
answer these questions By using the below data 1.The loan is equal to: 2. The monthly mortgage constant is equal to: 3. The monthly payment is equal to: 4. The amount of interest paid in the...
-
String one has 25 g on its mass hanger and is located at an angular position of 0. String two has 38 g of mass on the mass hanger and is located at an angular position of 180. Is there a third string...
-
The numbers of regular season wins for 10 football teams in a given season are given below. Determine the range, mean, variance, and standard deviation of the population data set. 2, 6, 15, 5, 14,...
-
In the simple quantity theory of money, what will lead to an increase in aggregate demand? In monetarism, what will lead to an increase in aggregate demand?
-
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]...
-
Does the direction of the electric field along the axis inside an electric dipole coincide with the direction of the electric dipole moment?
-
Suppose a negatively charged ring is placed directly above the positively charged ring in Figure 28.7. If both rings spin in the same direction, is the magnetic interaction between them attractive or...
-
Suppose the square current loop in Figure 28.10 is replaced by a circular loop with a diameter equal to the width of the square loop and with the same current. Does the circular loop experience a...
Study smarter with the SolutionInn App