At first glance, it looks like a routine to do bar graphs on your LCD. If that's what you're after, take a look at Darrel's bar graph include http://www.picbasic.co.uk/forum/showthread.php?t=2359