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]
3 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]3 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 followong parts does not rotate during starter operation? A. Commutator segments B. Armature windings c. Field wind
photoshop1234 [79]

Answer: B

Explanation: unless newer models added wingding to code inside fused computer...wingdings on a window ...not a motor

8 0
3 years ago
A small pad subjected to a shearing force is deformed at the top of the pad 0.08 in. The height of the pad is 1.38 in. What is t
Aleksandr-060686 [28]

Answer:

The shear strain is 0.05797 rad.

Explanation:

Shear strain is the ratio of change in dimension along the shearing load direction to the height of the plate under application of shear load. Width of the plate remains same. Length of the plate slides under shear load.

Step1

Given:

Height of the pad is 1.38 in.

Deformation at the top of the pad is 0.08 in.

Calculation:

Step2

Shear strain is calculated as follows:

tan\phi=\frac{\bigtriangleup l}{h}

tan\phi=\frac{0.08}{1.38}

tan\phi= 0.05797

For small angle of \phi, tan\phi can take as\phi.

\phi = 0.05797 rad.

Thus, the shear strain is 0.05797 rad.

7 0
3 years ago
write down your own definition of Engineering, preferably in 4-5 sentences. Maximum of 150 words for your definition???.​
ollegr [7]

Answer:

A charge q1=7.0mc is located at the origin and a second charge q2=-5.0mc is located on the x axis, 0.3m the origin find the electric field at the point p which he's coordinates (0,0.40)m

4 0
3 years ago
Question 21(Multiple Choice
Katen [24]

Answer:

four seconds

Explanation:

lookin at a vehicle respectively at a second can cause accident

8 0
3 years ago
Read 2 more answers
A water supply agency is planning to add two reservoirs to its system. Water will flow from Reservoir A to Reservoir B via a 10,
NikAS [45]

Attached is the solution to the above question.

3 0
3 years ago
Other questions:
  • When you are configuring data deduplication, you must choose a usage type for the volume you are configuring. Which of the follo
    8·1 answer
  • The soil borrow material to be used to construct a highway embankment has a mass unit weight of 107.0 lb/cf and a water content
    6·1 answer
  • "A fluid at a pressure of 7 atm with a specific volume of 0.11 m3/kg is constrained in a cylinder behind a piston. It is allowed
    6·1 answer
  • 6. PVC boxes are primarily used in new construction because it is simple to
    11·1 answer
  • Global Courier Services will ship your package based on how much it weighs and how far you are sending the package. Packages abo
    14·1 answer
  • Benzene gas (C6H6) at 25° C and 1 atm, enters a combustion chamber operating at steady state and burns with 95% theoretical air
    6·2 answers
  • the voltage across a 5mH inductor is 5[1-exp(-0.5t)]V. Calculate the current through the inductor and the energy stored in the i
    6·1 answer
  • Determine the reactor volume (assume a CSTR activated sludge aerobic reactor at steady state) required to treat 5 MGD of domesti
    5·1 answer
  • You may wonder who the rest goes
    11·1 answer
  • A jet of water 75m in diameter,issues with a velocity of 30m/s and impinge on a stationary plate which distort its forward motio
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!