The registers are just a bit different in this example but if you read through it things should become clearer. If not we will see you later
http://rentron.com/PICX2.htm