The hex code to clear the LCD is EF4045
All that does is clear the LCD, but when displaying the homescreen, it will reload the contents from the buffer
EF0745 displays the current contents of HL, but if you run it from the homescreen, the string is displayed, overwriting the value. So, in a program you can do:
That being said, I have been bugged about this, too, but since I wasn't sure if anybody else would be, I decided to leave it this way. It will only take 4 more bytes of code, but I can prevent dim(22 and dim(23 from modifying Ans. Are there any other commands that should not modify Ans?