BANKSEL - Generate Bank Selecting Code
Syntax
banksel <label>
Description
For use when generating an object file. This directive is an instruction to the linker to generate bank selecting code to set the bank to the bank containing the designated
<label>
. Only one<label>
should be specified. No operations can be performed on<label>
.<label>
must have been previously defined.The linker will generate the appropriate bank selecting code. For 12-bit core devices, the appropriate bit set/clear instructions on the FSR will be generated. For 14-bit devices, bit set/clear instructions on the STATUS register will be generated. For the 16-bit core devices,
MOVLB
orMOVLR
will be generated. For the enhanced 16-bit core devices,MOVLB
will be generated. If the device contains only one bank of RAM, no instructions will be generated.For more information, refer to Relocatable Objects.
Example
banksel Var1
movwf Var1
See Also
Microchip Technology Inc. Microchip's Web Site Voice: (480) 792-7200 Fax: (480) 899-9210 Microchip's E-mail Address |