xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
Well it's not me writing the software so I don't know where it should go. It just looks like it should go somewhere other than into uart_init. Whether it loops back to do more stuff or jumps to the end depends on what you're trying to do.
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
Post editing is permitted on this forum when you reach a certain post count, not sure what that is (10 perhaps).

You should be able to "BL output_string" after "BL sort", the idea of subroutines is that you can call them from anywhere. It looks like output_string outputs the string stored at the address in r10 so you'll need a MOV before you call it.

You'll also need to consider where the program should go after returning from output_string cos again if you do nothing it'll drop straight into uart_init.
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
Quote:
Originally Posted by Armnewbie87 View Post
No no, I wrote that code.
Quote:
Originally Posted by Armnewbie87 View Post
Also, I can assure you that my tutor didn't write any part of that code
All your credibility has just been lost and I now know you're lying, *OR* "clshah2" is passing your code off as his own, because his code is identical to yours (there are some minor differences in convert_2_lowercase and sort).

http://www.go4expert.com/showthread.php?t=16329
Quote:
Originally Posted by clshah2 View Post
I have written the following code...