Keil Logo

A51: Specifying Which Register Banks Are Used


Information in this article applies to:

  • C51 Version 5.50a and later

QUESTION

How do I specify the register banks that I've used in my assembler files?

ANSWER

The REGISTERBANK assembler directive allows you to specify which register banks are used. For example:

a51 mycode.a51 REGISTERBANK(2)

This tells the linker that you've used register bank 2 in your assembler module. The linker reserved register bank 2 and doesn't use that memory area for general purpose memory.

MORE INFORMATION


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.