'William Chops" Westfield ' It also points out that this is a port of the GNU Assembler, so any > other documentation you can find on the web for using the Gnu > assembler macro capability should also be applicable. I would be careful with that. ASM30 was cloned from the GNU assembler, but has been modified since. Very early on before the dsPICs were publicly released, there were a few hidden things in the assembler that weren't in the microchip documentation (like the "\@" construct, for one). Microchip found them and added them to the documentation years ago. I doubt you'll find any hidden features now. > Also note that > you have at least the possibility of using both C-style "macros" AND > the assembler macro capability, and perhaps even mixing them in > creative ways. Early on, mixing the two didn't work. There was something incompatible between the C preprocessor and ASM30. I vaguely remember that was fixed, but there may still be some issues. I do all my ASM30 assembly without the C preprocessor. We didn't start out that way, but took the C preprocessor out of the build chain when the problems were discovered. It's been so lon= g however that I don't remember what they were, but I'm pretty sure we've never gone back and added the C preprocessor to the build chain. The C preprocessor is pretty bad anyway, as it only deals with string substitutions. That's not a good way to do most of the things you want a preprocessor to do. > You get the sense that the main purpose > of the gnu assembler is to support the compilers (which is probably > true.) I agree. Note that various ASM30 directives for generating debug information. I was thinking of actually using them, but then found the details you realy need weren't documented. > In particular, my favorite style of "structured assembler" macros > don't seem to be possible. You should be able to do something like that with my preprocessor. You can create macros that are essentially full blown subroutines. The differ only from subroutines in how the arguments are passed. ******************************************************************** 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 .