On Thu, 13 May 2004 13:22:07 -0700, Jamie Jensen wrote: >I'm trying to assemble some code i grabbed off the mchip site (AN735 code) and I get this error. > > >Error[149] C:\A_DEV\735\I2CCOMM.ASM 80 : Directive only allowed when generating an object file > >I thought I was generating an object file? > Depending on how your project is set up, you could be generating a hex file from an absolute mode source file or a linkable object file from a relocatable mode source file. (Most, if not all, Microchip example files are absolute code.) Some directives, such as ORG, are prohibited in relocatable mode projects in which MPLINK and the .lkr file determine code location. It would be a lot easier to figure out what's going on if you were to post a few lines from your assembly file around where the error occurs. Regards, Bob -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.