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 are difference between conic sectional and solids?
Murljashka [212]

Answer:

Conic Sections

a conic section is a curve which is obtained when a surface performs an intersection with a plane. The types of conic sections include hyperbola, parabola and ellipse. A circle can also be considered as a conic section.

Conic Solids on the other hand are the set of points on any segment between a region and a point which is not present in the plane of the base. They are solids with one base.

3 0
3 years ago
When you see a street with white markings only, what kind of street is it?
Georgia [21]

Answer:

it's a one way street

3 0
4 years ago
A commercial refrigerator with refrigerant -134a as the working fluid is used to keep the refrigerated space at -30C by rejectin
Mariana [72]

Answer:

a) 0.487

b) refrigeration load = 5.46w

c) cop = 2.24

d)ref load max = 12.43kw

Explanation:

6 0
3 years ago
Read 3 more answers
The privilege of driving comes with
julsineya [31]
The privilege of driving comes with responsibility
5 0
2 years ago
Identify the right components for gsm architecture that consists of the hardware or physical equipment such as digital signal pr
sergiy2304 [10]

The right components for gsm architecture that consists of the hardware or physical equipment such as digital signal processors, radio transceiver, display, battery, case and sim card is the Mobile station.

<h3>What are the 4 main components?</h3>

In GSM, a cell station includes 4 fundamental additives: Mobile termination (MT) - gives not unusualplace features consisting of: radio transmission and handover, speech encoding and decoding, blunders detection and correction, signaling and get right of entry to to the SIM. The IMEI code is connected to the MT.

Under the GSM framework, a cell tele cell smartphone is called a Mobile Station and is partitioned into  wonderful additives: the Subscriber Identity Module (SIM) and the Mobile Equipment (ME).

Read more about the mobile station:

brainly.com/question/917245

#SPJ4

6 0
2 years ago
Other questions:
  • A fluid has a dynamic viscosity of 0.048 Pa.s and a specific gravity of 0.913. For the flow of such a fluid over a flat solid su
    10·1 answer
  • The rigid beam is supported by a pin at C and an A992 steel guy wire AB of length 6 ft. If the wire has a diameter of 0.2 in., d
    14·1 answer
  • You are given a noninverting 741 op-amp with a dc-gain of 23.6 dB. The input signal to this amplifier is;Vin(t) = (0.18)∙cos(2π(
    5·1 answer
  • How to walk a dog dududududududududesssss
    6·2 answers
  • Calculate the radius of a circular orbit for which the period is 1 day​
    13·1 answer
  • A tool used to put a concave edge on a plane iron is
    6·1 answer
  • Workplace bullying can cause_____hazards.
    7·1 answer
  • For many people in 3D modeling copyrights and licensing allow them to earn a living.
    12·1 answer
  • What lump sum of money must be deposited in a bank account at present time so that Php 500 monthly can be withdrawn for five yea
    10·1 answer
  • A) Your friend is faced with a situation i n whi ch t here is a difficulty in
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!