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
ASAP correct answer plss When you are driving, if you see this traffic sign it means
vlabodo [156]

Answer:

C

Explanation:

5 0
3 years ago
while performing a running compression test how should running compression compare to static compression
algol [13]

Answer:

The idle speed of a running compression should be between 50-75 PSI and that is about half of the static compression.

Explanation:

The Running or Dynamic compression is used to determine how well the cylinder in an engine  is absorbing air, reserving it for the proper length of time, and releasing it to the exhaust. The static or cranking compression test is used to check the sealing of the cylinder. Before performing the running compression test, the static compression test is first performed to rule out other issues like bent valves.

The standard value for the static compression is given by;

Compression ratio * 14.7 = Manufacturers Specification

The running compression should always be half of the static compression.

5 0
2 years ago
Two technicians are discussing a vehicle that cranks slowly when the key is turned to the crank position. The positive battery t
Norma-Jean [14]

Answer:

Both are right

Explanation:

3 0
1 year ago
Water is flowing into the top of an open cylindrical tank (which has a diameter D) at a volume flow rate of Qi and the water flo
deff fn [24]

Answer:

Z = 3 + 0.23t

The water level is rising

Explanation:

Please see attachment for the equation

8 0
3 years ago
Read 2 more answers
What i s the value of a capacitor with 250 V applied and has 500 pC of charge? (a) 200 uF (b) 0.5 pF (c) 500 uF (d) 2 pF
exis [7]

Answer:

(d) 2 pF

Explanation: the charge on capacitor is given by the expression

Q=CV

where Q=charge

           C=capacitance

           V=voltage across the plate of the capacitor

here we have given Q=500 pF, V=250 volt

using this formula C=\frac{Q}{V}

=500×10^{-12}×\frac{1}{250}

=2×10^{-12}

=2 pF

3 0
3 years ago
Other questions:
  • Which statement about direct-mail messages is most accurate? Group of answer choices Direct mail is an effective channel for per
    15·1 answer
  • What do you think are the advantages and disadvantages of isothermal constant volume high extension cycle? And how efficient do
    13·1 answer
  • Psychologist who uses behavioral approach to therapy would probably try which of the following
    13·2 answers
  • 12. Dies are turned using a special tool called a/an
    10·1 answer
  • A woodcutter wishes to cause the tree trunk to fall uphill, even though the trunk is leaning downhill. With the aid of the winch
    12·1 answer
  • Prove the following languages are nonregular, once using the pumping lemma and once using the Myhill-Nerode theorem. When using
    15·1 answer
  • 1<br>M<br>A BLIND COOK WHO DEFEATED<br>OVER 30,000 HOME COOKS!<br>y of​
    13·1 answer
  • What is the first step of the engineering design process?
    9·2 answers
  • Is reinforcement needed in a retaining wall
    5·2 answers
  • What is resonance as in ultrasound waves formation using magnetostriction method​
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!