Tamas Rudnai wrote 2011-07-03 20:41: > I am just reposting it with the correct [PIC] tag... > > ---------- Forwarded message ---------- > From: David Bley > Date: Sun, Jul 3, 2011 at 6:36 PM > Subject: [PIC[Passing Variables from HItech C to inline assembly > To: "piclist@mit.edu" > > > We have inherited a project running on a PIC16F505 at 4MHz. The bulk of = the > software is written in Hitech C with some inline assembler. The original > code works (we have the original source and the original .hex and .cof > files. 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 routine > that calculates a number for a delay that is passed to an inline assemble= r > routine that performs the delay (approx 40 - 75us). If I comment out the > inline assembly routine and replace it with a fixed delay routine using t= he > built in delay_us function, it compiles OK. Any suggestions? Sorry that= I > am being so sketchy, but this is a proprietary product. > -- > http://www.piclist.com PIC/SX FAQ& list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > But doing a small test-prog that actualy shows what you are reporting, should not show any closed/internal info !? --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .