[Solved] : Question 140491

Write an assembly language macro (called TOTAL) according to these specifications.
a. Accepts a pointer to an array of signed words in any arbitrary low register, (i.e., specified
as a parameter).
b. Accepts an unsigned word value that indicates the number of array elements in another
arbitrary low register, (i.e., specified as a parameter).
c. Returns the sum, (i.e., total), of array elements in an arbitrary low register, (i.e., specified
as a parameter).
d. Except for the obvious need to modify the register used to return the result, leaves all
registers (other than the program status register) unchanged after the execution of the
expanded macro is complete.


Expert Answer


Answer to : Question 140491

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us

× How can I help you?