Hi Olin Thanks for the reply. I'm still a little fuzzy on what you are suggesting. Would I have the same trouble (I think Gerhard is right about why the symbols are not recognized due to compiler mangling but I'm fuzzy on finding an asm file to search through to see a mangled symbol) unless I used the regular ASM compiler and linker instead of the one with the C compiler? Said another way do you mean write it in a different project make a precompiled library and link to it? Can you show me a two or three line example of how to write a function directly in asm and to call it from my C routine?....assuming it is doable from my C compiler. Phillip Things should be as simple as possible but no simpler Phillip Coiner CTO, GPS Source, Inc. Your source for quality GNSS Networking Solutions and Design Services, Now! -----Original Message----- From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf Of Olin Lathrop Sent: Thursday, June 01, 2006 5:34 AM To: Microcontroller discussion list - Public. Subject: Re: [PIC] undefined label message for asm in C Phillip wrote: > I was going to use my previously asm routines to do EEPRM reads and > writes in my C program. So I tried using the _asm directive to > make a function out of them. Why not just write a MPASM subroutine directly, especially since your "C" subroutine is all ASM inside anyway? ****************************************************************** Embed Inc, Littleton Massachusetts, (978) 742-9014. #1 PIC consultant in 2004 program year. http://www.embedinc.com/products -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist