Hi Alvaro, Thanks for the inspiring comments! I hope others will find it very useful too. I was using a lot of state = machine codes before when doing multitasking. But when I made this, it = solves a lot of trouble for me debugging and understand my C programs. regards, Reggie http://visitcebu.blogspot.com =C1lvaro Deibe D=EDaz wrote: > Cute. Amazing. Wonderful. Surprising. > = > Dangerous! :o) > = > Seriuosly, I can think of several places where structures like this would > make my code simpler and more readable. = > = > Thanks a lot for the inspiration, and your time to write the whole thing = in > a form that simpler and understandable. > = -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist