Hi, Barry King wrote: >2) You will sometimes see BASIC or assembler programs which "goto" a >place in a different scope. It is NEVER a good idea (and its illegal >in C) to "goto" out of a function, or into the middle of one, as one >example. Maintaining the dependancies of variable allocation, etc. >becomes error prone. Generally - Yes but not 'NEVER', for thoose of You who haven't yet, i strongly reccomend to look at this: = http://www.microchip.com/10/appnote/listing/index9.htm#a389 ( AN689 ). This code 'breaks' all these rules, makes all the do not's etc. There's a time and place for everything. When programming embedded systems ( in this case PIC's ) then DO program for these devices and not an 256 Gb ram 1THz Mega computer. BTW I Agree that this code is 'a bit' hard to follow, but i see no other possible way to get this much functionality form a 16F84 = in any other way. I rest my case, /Tony Tony K=FCbek, Flintab AB = =B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2= =B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2= =B2=B2=B2=B2=B2=B2=B2=B2=B2=B2 E-mail: tony.kubek@flintab.com =B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2= =B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2= =B2=B2=B2=B2=B2=B2=B2=B2=B2=B2 -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu