Peter Johansson wrote: > a switch statement is compiled as > a series of compare/branch-equal statements. Not necessarily. Jump tables are usually a better choice when there are many cases and the case space is not sparse. Most compilers are smart enough to figure out which one is more efficient given the particular conditions. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist