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
what is a home that has its own roof, foundation, and a wall that extends from the roof through the foundation
Hitman42 [59]

Fire wall is a home that has its own roof, foundation, and a wall that extends from the roof through the foundation.

<h3>What is a Fire wall?</h3>

This is known to be a form of rated assembly that ranges from the foundation to and via the roof of a building to lower the rate of fire spread.

Note that, Fire wall is a home that has its own roof, foundation, and a wall that extends from the roof through the foundation.

Learn more about Fire wall from

brainly.com/question/13024946

#SPJ1

5 0
2 years ago
Ow is squeezing toothpaste out of a tube of toothpaste similar to peristalsis?
zavuch27 [327]

Answer:

i dont know

Explanation:

gimme a sec

3 0
3 years ago
Shane's 100-watt radio draws 7 amps of current on a 120-volt circuit. What is the resistance in the radio?
Elis [28]

Answer:

Resistance, R = 2.04 Ohms.

Explanation:

Given the following data;

Current = 7 amps

Circuit voltage = 120 Volts

Power = 100 Watts

To find the resistance;

First of all, we would calculate the potential difference (voltage level) used by the radio.

Power = current * voltage

100 = 7 * voltage

Voltage = 100/7

Voltage = 14.29 Volts

Next, we solve for the resistance of the radio;

Ohm's law states that at constant temperature, the current flowing in an electrical circuit is directly proportional to the voltage applied across the two points and inversely proportional to the resistance in the electrical circuit.

Mathematically, Ohm's law is given by the formula;

V = IR

Where;

V represents voltage measured in voltage.

I represents current measured in amperes.

R represents resistance measured in ohms.

Substituting into the formula, we have;

14.29 = 7*R

R = \frac {14.29}{7}

Resistance, R = 2.04 Ohms.

7 0
3 years ago
How can historical design elements be added to modern building plans?
satela [25.4K]

Answer:

is it to late now

Explanation:

5 0
3 years ago
Read 2 more answers
Given a manhole with the outlet invert elevation of 2605. A run of 48 inch pipe connects to the next manhole at an invert elevat
alexdok [17]

Answer:

Distance between manholes = 166.67 (Unit) (Approx)

Explanation:

Given:

Invert elevation = 2605

New Invert elevation = 2610

Grade % = 3% = 0.03

Find:

Distance between manholes

Computation:

Grade % = (Change in elevation)/Distance between objects

0.03 = (2610-2605)/Distance between manholes

0.03 = 5 / Distance between manholes

Distance between manholes = 166.67 (Unit) (Approx)

5 0
3 years ago
Other questions:
  • If the efficiency of the boiler is 91.2 % , the overall efficiency of the turbine, which includes the Carnot efficiency and its
    5·1 answer
  • I was grumpy with her when she came over because she forgot something we planned to do.I offered to pick her up down town while
    12·1 answer
  • A particular Table in a relational database contains 100,000 Data Records/rows, each of which Data Record/row requires 200 bytes
    7·1 answer
  • What is the definition of flexible sequencing
    5·1 answer
  • cubical tank 1 meter on each edge is filled with water at 20 degrees C. A cubical pure copper block 0.46 meters on each edge wit
    6·1 answer
  • Free brainlyest...........................​
    13·1 answer
  • What is canaland its type ​
    10·1 answer
  • Type the correct answer in the box. Spell all words correctly.
    13·1 answer
  • NO LINK plsssss just answer
    9·1 answer
  • error: request for member 'setcursor' in 'oled', which is of non-class type 'adafruit ssd1306(int, int)' oled.setcursor(x, accel
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!