4.3 Bankisel Directive

On Mid-range devices only, the MPASM BANKISEL directive generates bank selection code appropriate for indirect access of the register address specified by its argument.

Suggested Replacement

No change is necessary; continue to use the BANKISEL assembler directive.

This directive is case-insensitive, can be used with any device, and works with numeric or symbolic operands. Note that it may generate more than one instruction, so it should not be used immediately following any test-and-skip instruction. If the directive is used with a device that does not require bank selection code for indirect access (for example, a PIC18 device) a warning is issued and the directive is ignore.
  movlw    myVar
  movwf    FSR      ;load the address of myVar info FSR
  BANKISEL myVar    ;select the correct bank for myVar
  movlw    055h
  movwf    INDF     ;indirectly write to myVar