A comment in a Microchip application note using HiTech C for UNIO devices - brave man! /** M A C R O S ****************************************************/ // WAIT_CCP1IF is equivalent to "while(CCP1IF == 0) {};" - the macro // was defined because the version of that line when compiled in // Lite mode is extremely inefficient. #define WAIT_CCP1IF asm("bcf _STATUS,5"); \ asm("btfss _PIR1,5"); \ asm("goto $-1"); Sits back and waits for comments on the use of 'goto $-1' construct. :) Colin -- cdb, colin@btech-online.co.uk on 7/07/2009 Web presence: www.btech-online.co.uk Hosted by: www.1and1.co.uk/?k_id=7988359 -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist