Question: ARM M3 Cortex Keil Uvision5 - No C/C++ please see instructions below in pictures, will thumbs up for working code . need more info to

ARM M3 Cortex Keil Uvision5 - No C/C++

please see instructions below in pictures, will thumbs up for working code . need more info to complete? let me know thanks

============CODE=======

; Write Your Macro Here CHEGG!

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 CHEGG

; Call your macro here for Array 2 Data: Use R7 for Sum of the Array, Use R8 for the Average of the ArrayCHEGG

; Call your macro here for Array 3 Data: Use R9 for Sum of the Array, Use R10 for the Average of the ArrayCHEGG

stop B stop

END

=====INSTRUCTIONS/GUIDELINES==============

ARM M3 Cortex Keil Uvision5 - No C/C++ please see instructions below

in pictures, will thumbs up for working code . need more info

to complete? let me know thanks ============CODE======= ; Write Your Macro Here

Replace the 1st highlighted section with your Macro. Write a macro that will calculate the sum of the array and the average of the array. (1)You may use some or all of the following registers as temporary variables inside your macro: RO, R1, R2, R3, R4 (2) Your macro must have the correct needed input parameters and result registers. Inputs: Array Size and the Array Results: Sum of the array and the Average of the array (3)1 recommend that you first solve the problem without Macro, then create your macro. (4) How to point to the array? You need to use LDR to point to the Array Pointer Example (Of course, you will need to use your parameter names): LDR RO, Array_1_Pointer, Now RO is pointing to the base address! LDR R1, Array_1 Size Replace the 1st highlighted section with your Macro. Write a macro that will calculate the sum of the array and the average of the array. (1)You may use some or all of the following registers as temporary variables inside your macro: RO, R1, R2, R3, R4 (2) Your macro must have the correct needed input parameters and result registers. Inputs: Array Size and the Array Results: Sum of the array and the Average of the array (3)1 recommend that you first solve the problem without Macro, then create your macro. (4) How to point to the array? You need to use LDR to point to the Array Pointer Example (Of course, you will need to use your parameter names): LDR RO, Array_1_Pointer, Now RO is pointing to the base address! LDR R1, Array_1 Size

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!