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
Paint can shaker mechanisms are common in paint and hardware stores. While they do a good job of mixing the paint, they are also
Ymorist [56]

Answer:

A good design for a portable device to mix paint minimizing the shaking forces and vibrations while still effectively mixing the paint. Is:

The best design is one with centripetal movement. Instead of vertical or horizontal movement. With a container and system of holding structures made of materials that could absorb the vibration effectively.

Explanation:

First of all centripetal movement would be friendlier to our objective as it would not shake the can or the machine itself with disruptive vibrations. Also, we would have to use materials with a good grade of force absorption to eradicate the transmission of the movement to the rest of the structure. Allowing the reduction of the shaking forces while maintaining it effective in the process of mixing.

6 0
3 years ago
A 4-stroke Diesel engine with a displacement of Vd = 2.5x10^-3m^3 produces a mean effective pressure of 6.4 bar at the speed of
yKpoI14uk [10]

Answer:

The power developed by engine is 167.55 KW

Explanation:

Given that

V_d=2.5\times 10^{-3} m^3

Mean effective pressure = 6.4 bar

Speed = 2000 rpm

We know that power is the work done per second.

So

P=6.4\times 100\times 2.5\times 10^{-3}\times \dfrac{2\pi \times2000}{120}

We have to notice one point that we divide by 120 instead of 60, because it is a 4 cylinder engine.

P=167.55 KW

So the power developed by engine is 167.55 KW

4 0
3 years ago
11. When selecting a route for a long trip, you should
mamaluj [8]

Answer:

b

Explanation:

i think do kill me if im wrong

6 0
3 years ago
Read 2 more answers
During January, at a location in Alaska winds at -20°C can be observed, However, several meters below ground the temperature rem
maw [93]

Answer:

a) \eta_{th} = 10.910\,\%, b) Yes.

Explanation:

a) The maximum thermal efficiency is given by the Carnot's Cycle, whose formula is:

\eta_{th} =\left(1-\frac{253.15\,K}{284.15\,K}  \right) \times 100\,\%

\eta_{th} = 10.910\,\%

b) The claim of the inventor is possible since real efficiency is lower than maximum thermal efficiency.

4 0
3 years ago
If he wants to keep the height the same, what could the other dimensions be for him to get the volume he wants?
Fiesta28 [93]

tbm queria saber essa pergunta

8 0
3 years ago
Other questions:
  • Sed is a multipurpose tool that combines the work of several filters. sed performs noninteractive operations on a data stream. s
    12·1 answer
  • When storing used oil, it need to be kept in________ container?
    11·1 answer
  • Define a function pyramid_volume with parameters base_length, base_width, and pyramid_height, that returns the volume of a pyram
    10·1 answer
  • A common rule of thumb for controller discretization is to have "6 samples per rise time" in order to achieve a reasonable appro
    9·1 answer
  • Please choose a specific type of stability or control surface (e.g., a canard) and explain how it is used, what it is used for,
    5·1 answer
  • What is the maximum fine for knowingly refilling a disposable refrigerant drum?
    11·1 answer
  • Which of the following best describes the basic purpose of the internet?
    7·2 answers
  • What engine or car do you think gets better gas mileage a
    9·1 answer
  • Deviations from the engineering drawing cannot be made without the approval of the
    15·2 answers
  • Hole filling fasteners (for example, MS20470 rivets) should not be used in composite structures primarily because of the
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!