clshah2 0 Newbie Poster

I have written the following code for reading and outputting characters and strings and then converting the strings to lowercase and sorting the characters with bubble sort! When I run the code, the code loops infinitely without doing anything except reading and outputting the strings and characters. Can someone help me as to what I am doing wrong here? I think I am messing up with my registers.. Heres the code in the attachment! Thank you.