Do you have the full version of MicroCode Studio Plus? if so, have a look at the following, it's a step by step explanation.
http://www.rentron.com/PicBasic/MCS_X3.htm

HTH