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.