Keil Logo

BL51: Locating Functions in Code Banking Programs


Information in this article applies to:

  • C51 All Versions

QUESTION

How do I locate functions in a code banking program at different addresses in a code bank?

ANSWER

The BANKx directive locates associated program modules or segments in the specified bank x.

  • BANKx {xxx.obj} includes all of xxx.obj in bank X. Note that this form uses the curly braces.
  • BANKX(symbol_name(yyyyH)) locates a symbolic name (usually these begin with ?PR?) at a specific address in bank X. Note that this form of BANKx uses the parentheses.

MORE INFORMATION

  • Refer to Command Prompt in the BL51 User's Guide.
  • Refer to BANKx in the BL51 User's Guide.
  • Refer to the BANK_EX1 code banking example in the \KEIL\C51\BANK_EX1\ folder.

Last Reviewed: Thursday, February 25, 2021


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.