Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Spatio Temporal Database Management International Workshop Stdbm 99 Edinburgh Scotland September 10 11 1999 Proceedings Lncs 1678

Authors: Michael H. Bohlen ,Christian S. Jensen ,Michel O. Scholl

1999th Edition

3540664017, 978-3540664017

More Books

Students also viewed these Databases questions