We have inherited a project running on a PIC16F505 at 4MHz.=A0 The bulk of = the software is written in Hitech C with some inline assembler.=A0 The orig= inal code works (we have the original source and the original .hex and .cof= files.=A0 We are unable to compile it with the latest version of Hitech C = (no optimization, free version) caused by passing a variable from a C routi= ne that calculates a number for a delay that is passed to an inline assembl= er routine that performs the delay (approx 40 - 75us).=A0 If I comment out = the inline assembly routine and replace it with a fixed delay routine using= the built in delay_us function, it compiles OK.=A0 Any suggestions?=A0 Sor= ry that I am being so sketchy, but this is a proprietary product. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .