Name: Anonymous 2007-09-12 5:23 ID:ETNdMjth
Consider the C code function below:
void qwerty(int *x, int *y, int size)
{
int k=0;
while ( k < size ) {
*(x + k) = *(y + k);
k++;
}
}
ii) Construct an ARM assembly code version which implements the C code within the function qwerty. You may assume that registers a1 and a2 contain the pointers x and y respectively, and that register a3 contains the size argument.
void qwerty(int *x, int *y, int size)
{
int k=0;
while ( k < size ) {
*(x + k) = *(y + k);
k++;
}
}
ii) Construct an ARM assembly code version which implements the C code within the function qwerty. You may assume that registers a1 and a2 contain the pointers x and y respectively, and that register a3 contains the size argument.