Keil Logo

BL51: DISABLING AUTOMATIC BANK SWITCHING


Information in this article applies to:

  • C51 Version 5.50

QUESTION

I wish to implement my own bank switching mechanism. How can I disable the automatic bank switching generated by the linker for inter-bank function calls?

ANSWER

Use the NOJMPTAB (abbreviation: NOJT) directive. The linker will no longer modify function calls to jump to the bank switching code.

Using this directive has the following effects on the linker:

  • The code banking assembler file L51_BANK.A51 is no longer required.
  • The linker does not modify any call instructions.
  • The linker does not generate any warnings if a jump or call is made to another code bank.

You must ensure that the correct bank is selected before making any inter-bank calls or jumps.

You may specify the directive in one of the boxes under the Additional tab in the BL51 Code Banking Linker Options in µVision.

MORE INFORMATION

  • Refer to NOJMPTAB in the BL51 User's Guide.

Last Reviewed: Friday, July 15, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.