Mark Jurras wrote: > I need to calculate a constant at compile time to set a delay. I > have an equate: > > NumAve equ 0x40 ;Average 64 Readings > .... > The equation for the delay is: > > 1000000/60/NumAve-80 > .... > I want to invoke Andrew Warren's WAIT macro with the result. Any > hints how to setup the expression?? Mark: WAIT (1000000/(60*NUMAVE)) - 80 -Andy === Andrew Warren - fastfwd@ix.netcom.com === Fast Forward Engineering - Vista, California === http://www.geocities.com/SiliconValley/2499 (personal) === http://www.netcom.com/~fastfwd (business)