Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Given an example of data segment below: . DATA X DB S DB P N DB ? +21, -76, +74, -99, -32, -89, -43, -121,
Given an example of data segment below: . DATA X DB S DB P N DB ? +21, -76, +74, -99, -32, -89, -43, -121, +15, -112, +76, -17 12 DB ? 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 DB S DB P N DB ? +21, -76, +74, -99, -32, -89, -43, -121, +15, -112, +76, -17 12 DB ? 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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started