1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Blizzard [7]
4 years ago
13

Write a new ARMv8 assembly file called "lab04b.S" which is called by your main function. It should have the following specificat

ions: Create a function that computes factorials: n! = n · (n − 1) · ... · 3 · 2 · 1. Use the my_mul function in question 1 for all multiplications Use the concept of recursion. Do NOT directly use the concept of iteration. Do not forget that using the recursion is the same as using the STACK. Make sure you comment on the code. Demonstrate your code running to the TA. Turn in your lab04b.S file here when complete.
Engineering
1 answer:
Len [333]4 years ago
6 0

Answer:

my_mul:

.globl my_mul

my_mul:

   //Multiply X0 and X1

   //   Does not handle negative X1!

   //   Note : This is an in efficient way to multipy!

   SUB SP, SP, 16       //make room for X19 on the stack

   STUR X19, [SP, 0]    //push X19

   ADD X19, X1, XZR     //set X19 equal to X1

   ADD X9 , XZR , XZR //set X9 to 0

mult_loop:

   CBZ X19, mult_eol

   ADD X9, X9, X0

   SUB X19, X19, 1

   B mult_loop

mult_eol:

   LDUR X19, [SP, 0]

   ADD X0, X9, XZR      // Move X9 to X0 to return

   ADD SP, SP, 16       // reset the stack

   BR X30

Explanation:

You might be interested in
Which of the following is not an example of heat generation? a)- Exothermic chemical reaction in a solid b)- Endothermic Chemica
Sav [38]

Answer:

b) Endothermic Chemical Reactions in a solid

Explanation:

Endothermic reactions consume energy, which will result in a cooler solid when the reaction finishes.

8 0
3 years ago
Gray cast iron, with an ultimate tensile strength of 31 ksi and an ultimate compressive strength of 109 ksi, has the following s
suter [353]

Using an appropriate failure theory, find the factor of safety in each case. State the name of the theory that you are using the theory is max stress theory.

<h3>Wat is the max stress theory?</h3>

The most shear strain concept states that the failure or yielding of a ductile fabric will arise whilst the most shear strain of the fabric equals or exceeds the shear strain fee at yield factor withinside the uniaxial tensile test.”

Stress states at various critical locations are f= 2.662.

Read more about strain:

brainly.com/question/6390757

#SPJ1

3 0
2 years ago
Recently, there was an outbreak of a computer virus, known as the Melissa virus. The FBI is determining whether the virus meets
never [62]

Answer:

Correct answer is (c)

Explanation:

The transmission of a program, information, code, or command that intentionally causes damage without authorization, to a protected computer.

Melissa virus is a computer program that was meant to cause serious damage to computer system by sending e-mail from an infected computer to the mail address on that computer. The virus was investigated by the FBI's National Infrastructure Protection Center. By transmission of a program, information, code, or command that intentionally causes damage without authorization, to a protected computer, The FBI's NIPC will be able to investigate how Melissa is being proliferated.

5 0
3 years ago
4. When the ESC system senses oversteer,
bagirrra123 [75]
I’m pretty sure the answer is b I’m not 100% but I think
5 0
2 years ago
Question about transformers and generators
Hitman42 [59]

Answer:

woah

Explanation:

7 0
4 years ago
Other questions:
  • Where are revolved sections placed in a print? A) in between break lines B) cutting planes are used to identify their locations
    12·1 answer
  • For H2O, determine the specified property at the indicated state.
    15·1 answer
  • The uniform beam is supported by two rods AB and CD that have crosssectional areas of 10 mm2 and 15 mm2 , respectively. Determin
    5·1 answer
  • The head difference between the inlet and outlet of a 1km long pipe discharging 0.1 m^3/s of water is 0.53 m. If the diameter is
    11·1 answer
  • Oil with a density of 850 kg/m3 and kinematic viscosity of 0.00062 m2/s is being discharged by an 8-mm-diameter, 42-m-long horiz
    9·1 answer
  • Two synchronous motors having subtransient reactances of 0.8 and 0.25 p.u., respectively, on a base of 500 V 2 MVA are connected
    13·1 answer
  • Airflow through a long, 0.15-m-square air conditioning duct maintains the outer duct surface temperature at 10°C. If the horizon
    11·1 answer
  • Designating a standard part is an example of a use for _______ notes.
    15·1 answer
  • A stainless steel ball (=8055 kg/m3, Cp= 480 J/kgK) of diameter D =15 cm is removed from theoven at a uniform temperature of 3
    13·1 answer
  • 5. Which of the following is false about onStep?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!