Wouter van Ooijen wrote: >> Create a C file with the "skeleton" of the routines that you want to >> write in ASM and compile it to assembly only. >=20 > Good idea, but I use MPLABX to do the compilation - how do I coerce=20 > MPLABX into doing this? A little late... Another way is to stay in C, that is, the file remains a C file with global/static variables and functions, and you fill the function bodies with assembly. Not quite the same, but for some cases adequate. An advantage is that the compiler knows about the function signatures and can manage them like all other C functions (and you don't have to worry about any of the details of segment management etc.). A disadvantage is that the compiler may add some code to the function body. Gerhard --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .