Not sure, but maybe this thread will help.
It might look familiar.

http://www.picbasic.co.uk/forum/showthread.php?t=11489