--- Steve Thackery wrote: > Dear Colleagues, > > Is there a problem with using macros in relocatable code? I'm using > MPASM. I've got a file called "pushpop.asm", which assembles fine and > contains the following: > > push macro > movwf wcopy ; save w register > swapf reg_status, w ; save status register > movwf scopy ; without altering status bits > endm > > pop macro > swapf scopy, w ; swapf status nibbles again and place in w > movwf reg_status ; restores status reg (including bank reg) > swapf wcopy, f ; swap nibbles in wcopy, keeping result in > wcopy > swapf wcopy, w ; swap again and place in w (status > unaffected) > endm > end > > In my "main" program I have the following: > > extern push, pop, ... Remove "push" and "pop" from extern statement. __________________________________________________ Do You Yahoo!? Bid and sell for free at http://auctions.yahoo.com