Keil™, An ARM® Company

Technical Support

A51: SPECIFYING WHICH REGISTER BANKS ARE USED


Information in this article applies to:

  • C51 Version 5.50a
  • C51 Version 6.03

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: Monday, July 18, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure