Place it in the common area at 0x70. Or, place it at the beginning of your cblock and remember not yo use the same location in the next (all) bank(s). Or simply call it W_Temp2.
Mike.
Edit, missed the bit about no common area.
Also, if you're not using indirect addressing then you can use FSR as the location of W_Temp.
Hi, There is no common area 0x70 in this PIC16F630.
If I call it "W_Temp2" do I need to save & restore in context saving? Or just leave it alone & only save and restore only "W_Temp"...?
You just call it W_Temp2 and forget about it. If your code happens to be using bank2 when an interrupt comes along then it will use the bank 2 copy of the location. The context saving stays the same as in the datasheet.
You just call it W_Temp2 and forget about it. If your code happens to be using bank2 when an interrupt comes along then it will use the bank 2 copy of the location. The context saving stays the same as in the datasheet.
Based on the datasheet, section 2.2.2, the RAM/Registers is common from 20 to 5F in both banks. Addressing it in bank1 (A0-DF) maps to bank0 (20-5F). Other PICs with larger RAM use the 70 to 7F region as common, but the 16F630 seems to map all 64 bytes as common, at least the way it reads in the datasheet....