On Sat, Sep 12, 2009 at 9:54 PM, Olin Lathrop w= rote: > Manu Abraham wrote: >> isr >> ; save registers >> movwf w_tmp ; save w >> swapf STATUS, w ; swap status >> clrf STATUS ; bank0 >> movwf status_tmp ; save status >> movf PCLATH, w ; save pclath >> movwf pclath_tmp >> clrf PCLATH >> movf FSR, w ; save fsr >> movwf fsr_tmp >> >> ; actual ISR >> bcf INTCON, INTF >> bsf flags, LEDBIT >> >> ; restore registers >> movf fsr_tmp, w >> movwf FSR >> movf pclath_tmp, w >> movwf PCLATH >> swapf status_tmp, w ; set bank to original >> movwf STATUS ; restore >> swapf w_tmp, f ; swap tmp >> swapf w_tmp, w ; swap tmp -> w >> >> retfie > > How did this mess ever assemble? =A0Opcodes are not allowed in column 1 e= lse > the assembler interprets them as labels. > > In any case, format properly if you want others to take it seriously. =A0= It > would be a lot easier to look at if opcodes, operands, and comments were = all > nicely lined up in fixed columns. Sorry, about that. It wasn't that way till i pasted into the mail. The code is here: http://twisted-brains.org/paste/573 -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist