ON 20040814@9:43:21 AM at page: http://www.piclist.com/techref/piclist/codegen/delay.htm#38213.4051041667 Daniel Chia Jin Hao[DC-yahoo-4] Says For PIC18, this delay routine will need a little modification to work properly.. the goto $+1 within the delay loops that sometimes appears needs to be changed to goto $+6, since each program word is 2 bytes, and goto is a 4 byte instruction. Also, at the end sometimes goto $+1 is used as a 2 cycle delay, need to use goto $+4 to skip over the whole goto.

I hope this is correct, AFAIK it is.