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
A(n) ____ is an object setting used to control the visible display of objects.
KatRina [158]
Remote?? maybe I’m not really sure
3 0
3 years ago
Electric heater wires are installed in a solid wall having a thickness of 8 cm and k=2.5 W/m.°C. The right face is exposed to an
Svet_ta [14]

Answer:

2.46 * 10⁵ W/m³

Explanation:

See attached pictures for detailed explanation.

6 0
4 years ago
Read 2 more answers
technician a says that dirt bypassing the filter on many common rail injectors can cause an injector to stick open and continuou
NNADVOKAT [17]

Technician a is correct because he says that Many common rail injectors filters can be bypassed by dirt, which can lead to an injector sticking open and continuously fueling a cylinder.

Coalescence is used to separate the water and fuel. To the fuel injector cleaning kit, fasten your air compressor. Diesel engines run at compression ratios that are greater than those of gasoline engines. greater ratio compared to gasoline engines. increased thermal expansion as a result. more fuel energy that is transformed into usable power. The great benefit of using a dry cylinder sleeve is that by quickly installing new sleeves, the cylinder block can be quickly restored to its original specifications. Vacuum drying can be used to get rid of small amounts of water. A nozzle is used to spray the fuel into the vacuum chamber of engines. Air and unsolved free water are taken out of the oil. The fuel is evenly dispersed, which facilitates efficient drying.

Learn more about injectors here:

brainly.com/question/27969202

#SPJ4

3 0
1 year ago
Need help I’m tryna get a good grade
hoa [83]

Answer:

Explanation:

Flowchart

Hope it helped you.

8 0
3 years ago
I have a 308 bullet stuck in my ak,s mag help?
Assoli18 [71]
Lick the bullet and push it down
3 0
3 years ago
Read 2 more answers
Other questions:
  • The enthalpy of the water entering an actual pump is 500 kJ/kg and the enthalpy of the water leaving it is 550 kJ/kg. The pump h
    10·1 answer
  • The specific volume of mercury is .00007 m^3/Kg. What is its density in lbm/ft^3?
    10·1 answer
  • What is the heights part of Maine?
    5·1 answer
  • Does the Diesel engine have engine knock or detonation problem? Why?
    6·1 answer
  • I'm really bad at measurements so I don't understand this.
    12·1 answer
  • IN JAVA,
    6·1 answer
  • The application of technology results in human-made things called
    9·1 answer
  • A(n) ____ is an exact representation of an object projected onto a plane from a specific position.
    14·1 answer
  • PLZZ HELP
    14·2 answers
  • : Câu nào dưới đây thể hiện sự thiếu tự chủ?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!