At 09:25 11/02/2001 -0600, Lawrence Lile wrote: >Now how could somebody convince a C compiler to use this algorithm for >RAM-free software delays? It seems to me that passing an argument in C would >most likely eat up precious RAM, even if the algorithm itself was dropped >into assembler, no? As someone already mentioned, most programs will have some kind of scratch RAM that they can use for such purposes. This is especially true for C compilers. There are a number of different kinds of "scratch RAM" that are available for this, and the probablility that such code will not increase the overall amount of RAM used even if it uses 1 or 2 byte file storage is pretty high. Besides, it may be possible write a macro that does this loop. The use of the W register may create a problem, though. ge -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads