4.4 Banksel Directive
The MPASM BANKSEL
directive generates bank selection code
appropriate for the label specified as the argument.
Suggested Replacement
No change is necessary; continue to use the BANKSEL
assembler directive.
This directive is case-insensitive, can be used with any device, and works with
numeric or symbolic operands. Note that it might generate more than one instruction,
so it should not be used immediately following any test-and-skip instruction, like
the
btfsc
instruction, for example. movlw 66
BANKSEL input
movwf BANKMASK(input)
Note: The manual masking of addresses used as instruction operands
(for example using the
BANKMASK()
or PAGEMASK()
macros or ANDing the operand with a mask) is not necessary when using the
-Wl,--fixupoverflow
option and any of the
ignore
, warn
, or lstwarn
arguments.