On Fri, 26 Mar 1999, John Payson wrote: > Cute, eh? Always, John. :) If you want to see some convoluted code that takes this indirect branching to an extreme, then check out: http://www.interstice.com/~sdattalo/technical/software/pic/pwm.txt and http://www.interstice.com/~sdattalo/technical/software/pic/pwm256.txt These are all software pwm routines that use state machines along with the 'movwf pcl' trick to determine where the code will execute.