Alan B. Pearce wrote: > The problem arises because the dbankif immediately after the label > generates no code because bank_x is already selected using the macro > before the label. the next dbankif then changes the bank selected, > some operations happen, then branch back to the label. The easiest > fix I found was to change the dbankif after the label to a dbank so > the macro inserted code irrespective of the previous bank. My mail server was down for most of the day, so now I'm getting incomplete threads in random order. I see that Dave already pointed out the UNBANK macro which is specifically to address this case. I don't know what original question prompted this discussion, but has everything been "sorted out" as you folks accross the pond like to say? ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist