This should help
http://www.picbasic.co.uk/forum/show...8359#post68359