> From: Victor Moisey [mailto:VMOISEY@ICH.UCT.AC.ZA] > From the data manual: > "Example 14-1 and Example 14-2 store and restore the STATUS and W > registers. For the PIC16C74 and PIC16c73, the register, > W_TEMP, must be > defined in both banks and must be defined at the same offset > from the the > bank base address (i.e., if W_TEMP is defined at 0x20 in > bank0, it must > also be defined at 0xA0 in bank 1)." > My problem is that defining W_TEMP in both banks produces an > error. Put the lines W_TEMP equ 20 W_TEMPBk1 equ W_TEMP+80 into your code, that's all. The command "movwf W_TEMP" in the interrupt will now addresses 20 or a0, depending on STATUS,RP0. The definition of W_TEMPBk1 is just for your remembrance, that a0 is in use. Martin Gramatke