Mark Peterson wrote: > I have a couple of errors in MPASM that are troubling. I commmented > the offending lines out to assemble but of course that's a nowhere > solution. > > In the heading area I used _CONFIG FFF9. I tried it with 0xFFF9, > h'FFF9', etc. but still get error. Try it with TWO underscores instead of one. Also, make sure that there's some white space to the left of the directive; "__CONFIG" should NOT begin in column one. > As per datasheet for 16Cxx's when first enter interrupt routine must > SAVE_STATUS and SAVE_Wreg. A temp copy of Wreg must exist on page0 > and page1 at the same relative location. I tried this as > > W_tem EQU 0x20 ;page0 location of W_tem > W_tem EQU 0xA0 ;page1 location of W_tem. > > The idea is that by restoring the STATUS reg first the correct bank > can be pointed to for retrieval of the current copy of the > accumulator. > > MPASM didn't like the second equate. So what am I doing wronnnnnng! You're attempting to redefine a symbol. This is illegal; each symbol may be EQU'ed only once. Rename the second symbol "W1_tem" or something. Your interrupt routine won't change; it should still refer only to "W_tem". -Andy Andrew Warren - fastfwd@ix.netcom.com Fast Forward Engineering, Vista, California http://www.geocities.com/SiliconValley/2499