This is some code I wrote for a class on assembly language years ago. The code works well with ASCII strings, the catch is that it is in assembly for the PDP-11. Since I've not so much as seen one of these since our VMS mainframe switched over to Alphas, I don't know where you'd use this.
int string_to_int(char*)
: string_to_int.mar
char* int_to_string(int)
: int_to_string.mar
void binary_search(int*)
: binary_search.mar
void selection_sort(int*)
: selection_sort.mar
check_line.mar