Given an example of data segment below: .DATA X S P N DB DB DB ?...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Given an example of data segment below: .DATA X S P N DB DB DB ? DB ? +21, -76, +74, -99, -32, -89, -43, -121, +15, -112, +76, -17 12 Write the definition of a macro which calculates the average of the positive and negative signed numbers in array X respectively. The macro has 4 arguments. First two arguments are name (X) and size (S) of the array. Last two arguments are the averages of the positive (P) and negative (N) signed numbers. The macro ignores the remainders. Given an example of data segment below: .DATA X S P N DB DB DB ? DB ? +21, -76, +74, -99, -32, -89, -43, -121, +15, -112, +76, -17 12 Write the definition of a macro which calculates the average of the positive and negative signed numbers in array X respectively. The macro has 4 arguments. First two arguments are name (X) and size (S) of the array. Last two arguments are the averages of the positive (P) and negative (N) signed numbers. The macro ignores the remainders.
Expert Answer:
Answer rating: 100% (QA)
Here is an example definition of a macro in assembly language that calculates the average of positiv... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
A researcher wanted to find out if there was difference between older movie goers and younger movie goers with respect to their estimates of a successful actors income. The researcher first...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
20 -101 10 in- laminate substrate Fig.2 Q2: The tool shown in Fig.2 is used in a gluing operation to press a thin laminate to a thicker substrate. If the wheels at points A and B both have 2 in...
-
Critically analyze the pros and cons of putting a price ceiling on prescription medicine. Make sure to use concepts from the chapter in this unit such as government intervention, inefficiencies,...
-
Express the moment of the couple acting on the frame in Cartesian vector form. The forces are applied perpendicular to the frame. What is the magnitude of the couple moment? Take F = 50N. 3 m 1.5 m
-
Youve just taken a job at the central bank and are given the job of calculating the appropriate nominal interest rate for a number of different Treasury bonds with different maturity dates. You have...
-
Statement of Cash FlowsIndirect Method Refer to all of the facts in Problem 12-6A. Presented here are comparative balance sheets: Required 1. Prepare a statement of cash flows for 2010 using the...
-
1. Let p and q be two positive numbers such that p + q = 2 and p + q = 272. Then p and q are roots of the equation: (a) x-2x+8=0 2. lim x 0 (sint)dt (b) x-2x+136=0 (c) x-2x+16=0 (d) x-2x+2=0 0
-
Early in its fiscal year ending December 31, 2024, San Antonio Outfitters finalized plans to expand operations. The first stage was completed on March 28 with the purchase of a tract of land on the...
-
The following balances were extracted from the books of A. Pizza at the end of the accounting period: Trade Receivables Bad Debts Provision for Bad Debts 61,500 0 5,850 Before preparing the year end...
-
Consider an airplane flying at a steady and level flight with a speed of 144 knots and an altitude of 13,000 ft. At time t = 0 hour, the position of the airplane is directly above an island. (a)...
-
A roller of a motorised mortar mixer rotates for 5 seconds with a uniform angular acceleration and describes 120 radians during this time. It then rotates with constant angular velocity and covers...
-
The speed of a flywheel changes from 10 rad/s to 30 rad/s in 5 seconds time. Determine the angular acceleration of the wheel. How many revolutions the wheel would turn to attain a speed of 600...
-
An ambulance is generating a siren sound at a frequency of 2,400 Hz. The speed of sound is 345.0 m/s. If the observer is traveling at a velocity of 24.00 m/s toward the stationary ambulance, then...
-
A circular coil of wire has 35 turns of wire each with a radius of 20 cm. The circular coil rotates with an angular velocity of 35 rotations per second. The circular coil has a net resistance of 0.25...
-
A graphing calculator is recommended. Given that lim csc (x) = o, illustrate the Precise Definition of an Infinite Limit by finding values of & that correspond to the following. (Round your answers...
-
What is your opinion of advertising awards, such as the Cannes Lions, that are based solely on creativity? If you were a marketer looking for an agency, would you take these creative awards into...
-
Jason and Mary Wells, friends of yours, were married on December 30, 2012. They know you are studying taxes and have come to you with a question concerning their filing status. Jason and Mary would...
-
Clarita is a single taxpayer with two dependent children, ages 10 and 12. Clarita pays $3,000 in qualified child care expenses during the year. If her adjusted gross income (all from wages) for the...
-
Laura is a single taxpayer living in New Jersey with adjusted gross income for the 2012 tax year of $35,550. Laura's employer withheld $3,300 in state income tax from her salary. In April of 2012,...
-
Use subjective judgment to estimate the probability that the next time you ride an elevator, it gets stuck between floors.
-
Because it is impossible for Thanksgiving to fall on Tuesday, the probability of Thanksgiving falling on Tuesday is 0. For Exercises 510, decide whether the statement makes sense (or is clearly true)...
-
What do we mean when we say that the probability of getting 20 babies of the same gender when 20 random babies are born is 1/524,288? Is such an event unusual? Why or why not?
Study smarter with the SolutionInn App