James Newton wrote: > Error [800] C:\DOCUME~1\JAMESN~1.EFP\LOCALS~1\Temp\s3h4.; 353. > undefined symbol "btemp" > > ... > > Add the following bit of assembly: > > psect temp,ovrld,class=3DBANK0,space=3D1 > global btemp > btemp > ds 2 I know nothing particular about HiTech C, but this really looks like BTEMP is intended to be externally defined. The reason this module didn't define BTEMP is that it's intended to be shared by multiple modules and therefore should be defined only once system-wide. Just from what you have said, I'm 99% certain BTEMP is defined in a C runtime library somewhere. That way it only gets linked in when actually used. I'm guessing you forgot to link in a particular library supplied with the compiler. With a larger program it would probably be more obvious because various implicit subroutine names would be missing. In this case the program was so simple that it needed little from the runtime libraries and you got only the cryptic BTEMP missing. ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .