Question
; Write Your Macro Here AREA Lab_12_YourFirstName_YourLastName, CODE, READONLY EXPORT __main Array_1 DCD 3, -7, 2, -3, 10 Array_1_Size DCD 5 Array_1_Pointer DCD Array_1 Array_2
; Write Your Macro Here AREA Lab_12_YourFirstName_YourLastName, CODE, READONLY EXPORT __main Array_1 DCD 3, -7, 2, -3, 10 Array_1_Size DCD 5 Array_1_Pointer DCD Array_1 Array_2 DCD -8, -43, -3 Array_2_Size DCD 3 Array_2_Pointer DCD Array_2 Array_3 DCD 9, 34, 2, 6, 2, 8, 2 Array_3_Size DCD 7 Array_3_Pointer DCD Array_3 __main ; Call your macro here for Array 1 Data: Use R5 for Sum of the Array, Use R6 for the Average of the Array ; Call your macro here for Array 2 Data: Use R7 for Sum of the Array, Use R8 for the Average of the Array ; Call your macro here for Array 3 Data: Use R9 for Sum of the Array, Use R10 for the Average of the Array stop B stop END (Write a macro that will calculate the sum of the array and the average of the array using some or all of the following registers as temporary variables inside your macro: R0, R1, R2, R3, R4 , you are not allowed to modify your main EXCEPT for the 3 lines that will call your macro.
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