BANKISEL - Generate Indirect Bank Selecting Code

MPASM Assembler

BANKISEL - Generate Indirect Bank Selecting Code

Syntax

bankisel <label>

Description

For use when generating an object file. This directive is an instruction to the linker to generate the appropriate bank selecting code for an indirect access of the address specified by <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 14-bit core devices, the appropriate bit set/clear instruction on the IRP bit in the STATUS register will be generated. For the 16-bit core devices, MOVLB or MOVLR will be generated. If the user can completely specify the indirect address without these instructions, no code will be generated.

For more information, refer to Relocatable Objects.

Example

movlw Var1

movwf FSR

bankisel Var1

:

movwf INDF

See Also

BANKSEL PAGESEL


Microchip Technology Inc.
Microchip's Web Site
Voice: (480) 792-7200
Fax: (480) 899-9210
Microchip's E-mail Address
PreviousNext