Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Use ARM assembly to read string of ASCII characters save it into memory, then extract the hex digits and convert them to integers before

1. Use ARM 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

2. Use ARM assembly instructions to branch to functions and pass the argument to the functions using the stack and either receive the result on the stack or in a 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 For each integer, save the results of factorial and summation in a memory array contiguously.

For example, the array would read: A = , (n-1)!, ? ?? ???1 ??=0 , n!, ? ?? ?? ??=0 , After processing all the integers, perform an insertion sort on the resultant array.

For example: for i = 1 to length (A) -1 x = A[i] j = i 1 While j >= 0 and A[j] > x A[j + 1] = A[j] j = j 1 end while A[j + 1] = x End for loop

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 functions output(s), where it is located, and how its returned to the caller.

2. Utilize the stack for passing parameters.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual Basic Net Database Programming

Authors: Rod Stephens

1st Edition

0789726815, 978-0789726810

Students also viewed these Databases questions

Question

What is meant by 'Wealth Maximization ' ?

Answered: 1 week ago

Question

Which team solution is more likely to be pursued and why?

Answered: 1 week ago

Question

4. I can tell when team members dont mean what they say.

Answered: 1 week ago