On Thu, 17 Feb 2005, Alan B. Pearce wrote: > what have I missed ? It helps if you think of each case inside the switch block as the target label of a goto. These need not be in order (including not the default case). The jump-to-a-case is decided at switch(). The OP used indentation to confuse the enemy ;-) If you rewrite the code with proper indentation (all cases and default at the same i. level), and keep in mind that they are in fact target labels for a goto/jump table decided in switch() it will likely be clearer. Peter -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist