assembly代写

You are required to write a variation on the code as follows.

Write a C++ program which asks the user to enter a string of random alphanumeric characters. The program stores the characters in an array. It will then call another function, sort(), which is passed a pointer to the array. The sort() function will use the Bubble Sort Algorithm or similar to sort the characters into an ordered list where the smallest is at the beginning and biggest at the end of the array.
You can use ASCII codes. Remember that ASCII code for the letter ‘a’ is a smaller binary value than the ASCII code for the letter ‘b’ etc. Digits have lower binary values than letters but uppercase letters have lower binary values than lowercase letters. ‘A’ has the value 41H but ‘a’ has the value 61H.
The sort() function is to be written in 80386 assembly language. On returning from the sort() routine the main function will then display the sorted list on the screen.

1