MODIFYING THE DEFAULT BANK-SWITCHING ROUTINE

The default bank-switching code is available in the supplied assembler language source

file iar_banked_code_support.s51, which you can find in the directory

8051\src\lib.

The bank-switching routine is based on an SFR port being used for the bank switching.

By default P1is used. The SFR port is defined inthe linker command file by the line:

-D?CBANK=PORTADDRESS

As long as you use this solution, the only thing you must do is to define the appropriate

SFR port address.

After you have modified the file, reassemble it and replace the object module in the

runtime library you are using. Simply include it in your application project and it will

be used instead of the standard module in the library.