Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

ARM assembly language to convert integer, 1194684 to hexadecimal. The signature

ID: 3685862 • Letter: A

Question

ARM assembly language to convert integer, 1194684 to hexadecimal.

The signature of the routine is char*int2hex(int convert) where:

int convert = 1194684;

The output must be in the format 0Xdddddddd

I need the ARM Assembly Language NOT the C-code.

The C program is:

#include <stdlib.h>
#include <stdio.h>

extern char * int2hex( int convert ) ;

int main( int argc, char * argv[] )
{
   int convert = 1194684 ;
   char * result ;
  
   result = int2hex( convert ) ;
   printf( "Integer to hex string: %s ", result ) ;
}

Explanation / Answer

ARM assembly language code to convert integer, 1194684 to hexadecimal

Output :