To get your project working, go into "edit project", then "node properties" for "?.hex" and change language tool to "pic C linker". This allows you to use multiple files which are linked at the end. Go to my tutorial at http://www.workingtechnologies.com/htpic/Hi-Tech_C_tutorial.htm and it will explain how to set up a project. Hope this helps, Regards, Shane. > -----Original Message----- > From: pic microcontroller discussion list > [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Mike Harrison > Sent: Tuesday, 6 March 2001 8:13 a.m. > To: PICLIST@MITVMA.MIT.EDU > Subject: [PIC]: How to use external .AS assembler files in Hitech > C/MPLAB > > > After having problems with #asm sections in Hitech C (optimiser > destroying them and optimising out local vars!), I'm trying to move > all the assembler to an external .AS file, but having no joy, and the > Hitech manual is little help. > > I've managed to get a .as file to assemble to a .obj file, but can't > figure out how to tell PICC to link the extra .OBJ file. > I think the 'global' declaration is OK, as I extracted the assembler > from a 'compile to assembler' compilation, and it matches the example > in the manual. > > MPLAB 5.00 doesn't appear to allow the .as file to be added as an > extra node to the project, and if I add either the .as file or .obj > filename to the 'additional command line options' section it will > compile (and also assemble, in the case of a .as file), but DOESN'T > generate a .hex file (no error message), and doesn't find the external > label. > > Any ideas ? > It is possible at all in MPLAB ? > > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. > > > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.228 / Virus Database: 109 - Release Date: 17/01/2001 > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.228 / Virus Database: 109 - Release Date: 17/01/2001 -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.