So, if I tried to access an sfr with this: Movwf 80h And left off the ,0 then it would probably end up in the wrong place. Can I use this: Movwf 0f80h And not have to worry about the 'a' parameter? =20 -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU] On Behalf Of Bob Ammerman Sent: Friday, July 09, 2004 12:22 PM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC:] 18F2220 'a' parameter It depends on the address of 'register1'. If register 1 is in the access bank (ie: 0..7F or F80..FFF) then the assembler automatically uses access bank mode. Otherwise, the assembler assumes you have been smart enough to set up the bank register properly, and it uses regular mode. FYI: I often use the following scheme for allocating memory on 18F applications: I set BSR to 1 and leave it there. Now I can access data in the access bank, as well as bank 1 with normal instructions without having to play with banking at all. I use the remaining banks to store buffers and other large data structures that I access via the FSRs or sometimes MOVFF instructions (which don't care about banks). Bob Ammerman RAm Systems -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu