Question: Arm Programming using Keil Software: Macros and Arrays Step 2: Copy the following template to your assembly file Write Your Macro Here AREA Lab 12
Arm Programming using Keil Software: Macros and Arrays

Step 2: Copy the following template to your assembly file Write Your Macro Here AREA Lab 12 YourFirstName YourLastName, CODE, READONLY EXPORT_main Array Array 1_Size DCD 5 Array 1_Pointer DCD Array_1 DCD 3, -7, 2, -3, 10 1 Array_2 Array 2_Size DCD 3 Array_2_Pointer DCD Array_2 DCD -8, -43, -3 DCD 9, 34, 2, 6, 2, 8, 2 Array_3 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 Step 2: Copy the following template to your assembly file Write Your Macro Here AREA Lab 12 YourFirstName YourLastName, CODE, READONLY EXPORT_main Array Array 1_Size DCD 5 Array 1_Pointer DCD Array_1 DCD 3, -7, 2, -3, 10 1 Array_2 Array 2_Size DCD 3 Array_2_Pointer DCD Array_2 DCD -8, -43, -3 DCD 9, 34, 2, 6, 2, 8, 2 Array_3 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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
