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
12. What procedure should you follow when taking measurements?
OlgaM077 [116]
I think the answer is b
8 0
2 years ago
A 200 W vacuum cleaner is powered by an electric motor whose efficiency is 70%. (Note that the electric motor delivers 200 W of
Goshia [24]

Answer:

The rate at which this vacuum cleaner supply energy to the room when running is 285.71 Watts.

Explanation:

power efficiency of electric motor = 70% = 0.70

The power output of the vacuum cleaner =P_o= 200 W

The power output of the vacuum cleaner = P_i

Efficiency=\frac{P_o}{P_i}

0.70=\frac{200 W}{P_i}

P_i=\frac{200 W}{0.70}=285.71 W

The rate at which this vacuum cleaner supply energy to the room when running is 285.71 Watts.

5 0
3 years ago
On diesel engines, data from ________ sensors are commonly used to adjust exhaust gas recirculation (EGR) rates.
e-lub [12.9K]

Answer:

Air mass sensors is the right answer i think

Explanation:

3 0
2 years ago
Information or signals entered into a computer system is
Virty [35]

<em>Logs.</em>

<em>Like data logs. Sometimes people make these logs to keep tabs on other people or to get important information put down somewhere that way it is saved and can be looked back upon later. Anytime someone makes an action on the computer, it makes a TMP file representing a log of what you want it to do before the computer quickly get's rid of the file.</em>

<em>-Ɽ3₮Ɽ0 Ⱬ3Ɽ0</em>

<em />

8 0
3 years ago
Out
olchik [2.2K]

ave you ever seen a Rube Goldberg machine in action? You probably have, even if you didn’t know what it was. A Rube Goldberg machine is a contraption that uses a chain reaction to carry out a simple task. It performs a very basic job in a complicated way.

7 0
3 years ago
Other questions:
  • Estudio de caso Teorema de Bayes. Las historias de casos clínicos indican que diversas enfermedades producen sistemas similares.
    14·1 answer
  • After being purged with nitrogen, a low-pressure tank used to store flammable liquids is at a total pressure of 0.03 psig. (a) I
    13·1 answer
  • If the outside diameter of a pipe is 2 m, the length of a piece of insulation wrapped around it would be a)- 628 cm b)- 12.56 m.
    15·1 answer
  • 1. Which of the following is the ideal way to apply pressure onto pedals?
    14·2 answers
  • Write multiple if statements
    5·1 answer
  • Which of the following is an example of a computer simulation?
    7·1 answer
  • My teacher wants me to build a perpetual motion machine and present it. I know they don't exist, and SHE knows they don't exist
    12·2 answers
  • Steam enters a heavily insulated throttling valve at 11 MPa, 600°C and exits at 5.5 MPa. Determine the final temperature of the
    14·1 answer
  • What is the difference between absorbed wavelengths and reflected wavelengths?
    11·1 answer
  • 11. What are restrictions when building or completing a challenge?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!