Question: Using ARM assembly language Level 1 ---- Extract Alphabetical characters from a String Array and Sort them in ascending order (6 points) Create your own

Using ARM assembly language

Level 1 ---- Extract Alphabetical characters from a String Array and Sort them in ascending order (6 points)

  • Create your own string array as follows:

Full name : StarID

Example: Arm Assembly: ab7328cd

  • Extract alphabetical characters from the string array and store them into memory with its first element pointed by R5 (R5=0x40000100)
    • Look at ASCII table to find the ASCII value for different characters.
  • Using the insertion sort algorithm, sort the alphabetical characters stored in the memory pointed by R5 in ascending order (min to max).
    • The sorted characters must be stored in memory with its first element pointed to by R5 and should not contain numeric characters.
    • The program must be able to work for ANY size array

Level 2 ---- Extract numeric characters from the string array and find total sum of the numeric values (8 points)

Example: Arm Assembly: ab7328cd

The summered value present in above string is 7+3+2+8=20

  • Store the sum of the numeric values present in the string into R4
  • Store the total count of alphabetical characters into R2
  • These calculations must work for ANY size array

Level 3 ---- Perform division using assembly language and store it into given memory location (10 points)

  • Divide 7320 by total count of characters and store the result into memory location (0x40000100) (does not have to this location)

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 Databases Questions!