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
boyakko [2]
3 years ago
5

Your task is to fill in the missing parts of the C code to get a program equivalent to the generated assembly code. Recall that

the result of the function is returned in register %eax. You will find it helpful to examine the assembly code before, during, and after the loop to form a consistent mapping between the registers and the program variables.
Engineering
1 answer:
Rudik [331]3 years ago
6 0

Answer:

See Explaination

Explanation:

//Function

long loop (long x, long n)

{

//Declare a variable named result and initialize it to zero

long result = 0;

//Declare a variable named mask

long mask;

//For loop

for(mask = 1; mask != 0; mask = mask << (n & 0xFF))

{

//Calculate

result | = (x&mask);

}

//Return result

return result;

}

You might be interested in
Explain why surface temperature increases when two bodies are rubbed against each other. What is the significance of temperature
Ronch [10]

Answer:

The surface temperature increases when two bodies are rubbed against each other due to friction.

Explanation:

No object has a perfectly even surface. So, when two bodies with uneven surfaces are rubbed against each other, they experience friction.

Friction is a resistance experienced by the two bodies when they are moved against each other.

The friction between the two surfaces, converts the kinetic energy of the movement to the thermal energy.

Thus, resulting in rise in the surface temperature of the two bodies.

Therefore, when two bodies are rubbed against each other, the surface temperature increases due to friction.

7 0
3 years ago
You are driving on a roadway with multiple lanes of travel in the same direction, and are approaching an emergency vehicle parke
solmaris [256]

Answer: a. Leave the lane closest to the emergency as soon as it is safe to do so, or slow down to a speed of 20 MPH below the posted speed limit.

Explanation:

Giving a way to the law enforcement vehicle and a medical emergency vehicle is necessary. If one approaches an emergency vehicle parked along the roadway one should change the lane as the vehicle may not move and the driver may also waste his or her time also one should also slow down his or her speed while approaching the vehicle as most of the emergency vehicle are in rush to reach the hospital so the driver should maintain some distance with the medical emergency vehicle.

7 0
3 years ago
A tensile test uses a test specimen that has a gage length of 50 mm and an area = 206 mm2. During the test, the specimen yields
vampirchik [111]

Answer:

The percent elongation in the length of the specimen is 42%

Explanation:

Given that:

The gage length of the original test specimen  L_o = 50 mm

The final gage length L_f = 71 mm

The area = 206 mm²

maximum load  =  162,699 N

To determine the percent elongation in %, we use the formula:

\%EL = \dfrac{L_f-L_o}{L_o}\times 100

\%EL = \dfrac{71 \ mm-50 \ mm}{50 \ mm}\times 100

\%EL = \dfrac{21 mm}{50 \ mm}\times 100

\%EL = 0.42 \times 100

\mathbf{\%EL = 42 \%}

The percent elongation in the length of the specimen is 42%

4 0
4 years ago
3. A 4-m × 5-m × 7-m room is heated by the radiator of a steam-heating system. The steam radiator transfers heat at a rate of 10
Natali [406]

Answer:

14.52 minutes

<u>OR</u>

14 minutes and 31 seconds

Explanation:

Let's first start by mentioning the specific heat of air at constant volume. We consider constant volume and NOT constant pressure because the volume of the room remains constant while pressure may vary.

Specific heat at constant volume at 27°C = 0.718 kJ/kg*K

Initial temperature of room (in kelvin) = 283.15 K

Final temperature (required) of room = 293.15 K

Mass of air in room= volume * density= (4 * 5 * 7) * (1.204 kg/m3) = 168.56kg

Heat required at constant volume: 0.718 * (change in temp) * (mass of air)

Heat required = 0.718 * (293.15 - 283.15) * (168.56) = 1,210.26 kJ

Time taken for temperature rise: heat required / (rate of heat change)

Where rate of heat change = 10000 - 5000 = 5000 kJ/hr

Time taken = 1210.26 / 5000 = 0.24205 hours

Converted to minutes = 0.24205 * 60 = 14.52 minutes

4 0
4 years ago
What scale model proves the initial concept?
Tju [1.3M]

Answer: A prototype

Explanation:

5 0
3 years ago
Other questions:
  • A cylindrical rod of 1040 Steel originally 10.5 mm in diameter is to be cold worked by drawing to a final diameter of 8.5 mm. Th
    10·1 answer
  • A _________ is a PLD featuring a general structure that allows very high logic capacity and offers more narrow logic resources a
    5·1 answer
  • Draw and label a typical true stress-strain curve for a ductile material.
    8·1 answer
  • PLEASE ANSWER
    6·2 answers
  • The real power delivered by a source to two impedances, ????1=4+????5⁡Ω and ????2=10⁡Ω connected in parallel, is 1000 W. Determi
    14·1 answer
  • The four applicants for a $40,000 loan are Robin Smith, Amari Jones,
    7·1 answer
  • What Happens If A Sonic Boom Is Created?
    8·1 answer
  • (a) If 5 x 10^17 phosphorus atoms per cm3 are add to silicon as a substitutional impurity, determine the percentage of silicon a
    5·1 answer
  • Which of the following values is equivalent to the pound used by the U.S. customary system?
    10·2 answers
  • 2=333=3= im single text in comment
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!