On Thu, 1 Nov 2001, K|bek Tony wrote: > Neat ! however.. > > a bit concerned over 8 bit pcl rollover ( i.e. from 0xFF -> 0x00 ) > lets try with the following: > Let's try with 1 loop delay and let PCL have the value 0xFF at the > first subwf. > > W = 1 -> a 5 cycle delay ( excluding and returns or calls ) > > Delay500Loop_1 ; W = 1 > subwf PCL,W ; PCL = 0xFF ( 255 ) -> F-W = 254 > subwf PCL,W ; PCL = 0x00 -> F-W = 254 !!! gotcha... > skpz ; > goto Delay500Loop ; loop forever.... Tony, It's actually 0 - 254 which yields 2. Roll over is no problem. Dwayne has stumbled on a truly devious piece of code that couldn't have been posted on a better day of the year! Scott -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body