
So what you want is a php function that converts an input string to an specifically encoded hex representation. Easiest possible approach would be to put all characters in an array, search to the string and replace the characters.
But what's wrong with the TI font format? It's much easier, more readable and more flexible to just do .db "You just have passed GO", 0 and adjust the text drawing routine instead.