Olin Lathrop wrote: > > Unfortunately, MPASM can't deal with macros that aren't > > fixed-length, so the conditional macros don't work. > > Huh!? I have many macros that result in varying numbers of instructions > depending on assembly time state. One example is the DBANKIF macro in > STD.INS.ASPIC at http://www.embedinc.com/pic. It generates, 0, 1 or 2 bit > setting instructions depending on the old and new register bank settings. Good point. Let me rephrase: Unfortunately, MPASM can't deal with macros that aren't fixed-length. Fortunately, however, Microchip now include a separate linker with their dev tools, so if you're one of those people who use MPLINK, you can go ahead and write all the varying-length macros that you want. You kids today have it so easy... -Andy === Andrew Warren -- aiw@cypress.com === Principal Design Engineer === Cypress Semiconductor Corporation === === Opinions expressed above do not === necessarily represent those of === Cypress Semiconductor Corporation -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu