You might want to take a look at this post, and the rest of the thread as well.

http://www.picbasic.co.uk/forum/show...=9443#post9443