ARM assembly programmi
Write a program in assembly to read string of ASCII characters save it into memory, then extract the hex digits and convert them to integers before processing and skip any none hexadecimal characters. Use assembly instructions to branch to functions and pass the argument to the functions and receive the result in the register.
Implement the following: 1. Place the following character string into an input.txt file. Use them as an input for running operations:
0, 3, 4, 5, 6, 8, 9, A, B, C, 1, G, H, a, 2, b, 1, c, 7 2. Read input file convert appropriate characters into hexadecimal integer. 3. Have 2 output files. The first one must have three columns: the first is the integer, the second is the summation (using the algorithm n/2 *(n+1)), and the third column is the factorial of the number. Prior to column headings there should be string(s) of character that lists your class name, number, and your name and last name. The second output file is described in part 4. 4. Use the following functions in this problem: File open File append Number factorial Number summation
Note: A is the array of integer values calculated by your summation and factorial functions. Write the calculated integer values from the sorted array to the second output file. The integers must be sorted in an ascending order.
Note: 1. Each subroutine/function must have comment block in the beginning which explains which variables are the inputs that are received from caller and where they are located, and what is (are) the function’s output(s), where it is located, and how its returned to the caller. 2. Utilize the stack for passing parameters.