Olin Lathrop wrote: >> I would like to hear, off list, from anyone with any experience >> integrating assembly language modules with HI-TECH PICC C code. > It's usually pretty straigh forward. Every compiler manual I've seen has a > section called "subroutine linkage", or "calling conventions", or something > like that. It describes how arguments are passed to/from subroutines. You > do whatever it says in assembler. That's one way. Another way is to create almost empty C function bodies and put the assembler code inside. Needs an understanding how the compiler allocates local variables so that you can use them in your assembler code, but allows the compiler to deal with all the issues of allocation, linkage etc. on its own. You need to do a bit less on the details of how the compiler handles things. Adding a few dummy assignments between arguments and local or public variables shows you how the compiler does these things. Then you can rather easily replicate this in your assembler code. Gerhard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist