Question: provide the values tor A thru K . You should use relative ottset addressing as shown in class ( for example ) : . equ

provide the values tor A thru K. You should use relative ottset
addressing as shown in class (for example):
. equ A, FP_OFFSET +4
. equ B,x+4,??FPOFFSET=12
. equ PAD, x+0
#define ARR_SIZE 8
void func2(int *arg1, int arg2, int *arg3, int arg4)
if
arg1[0]=arg4;
(**arg3)+=1;
}
}
provide the values for A thru K. You should use relative offset
void funcil (it arg){
int counter;
int arr[ARR SIZE];
counter =0;
func2(arr, ARR_SIZE, &counter, arg);
}
// arm header not shown
. equ ARR_SIZE, 8
. equ FP_OFFSET,
{r4-r5,fp,lr},sp,sp, mov r1,ARRSIZE??mov the array size into
mov r2,0??counter =0
str??save counter on the stack ,r3,r0r2,r5,sp,fp,(:K:),{r4-r5,fp,lr},
 provide the values tor A thru K. You should use relative

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!