Write an arm assembly function that takes an array


Write an ARM assembly function that takes an array of integers and finds the largest integer in the array. The array search is terminated when a negative integer is found.

The C language program is:

#include

int mybig( int a[] ) ;

void main( int argc, char * argv[] )
{
int array[] = { 3, 5, 100, 252, 300, 2, 4, -1 } ;
int result ;

result = mybig( array ) ;
printf( "Largest element value: \n", result ) ;

}

The input to the ARM assembly language function is a pointer to the first element of the array in register a1. Remember a word is 4 bytes long.

The array search is terminated by a negative value. 

Request for Solution File

Ask an Expert for Answer!!
Assembly Language: Write an arm assembly function that takes an array
Reference No:- TGS097139

Expected delivery within 24 Hours