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






ARM assembly language to convert Integer, 1194684 to hexadecimal. The signature ofthe routine is char*int2hex(int convert) where: int convert = 1194684; The output

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 OXdddddddd I need the ARM Assembly Language NOT the C-code. The C program Is: #Include #include 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); Q2. (5+15-20 points) Write an ARM assembly language program to compute the following equation: 2X+2X+4 Assume the value of X=12. You may use any registers you want, except R13, R14 and R15. The final sum should be in RO. Hints: Consider using a series of MOV instructions to move immediate values into registers. Consider using a series of ADD, LSL instructions to create final result in RO. Q2a. (5 points) Make a flow chart for your program. Bring to class

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 Computer Network Questions!