ARM Technical Support Knowledge Articles

AVOIDING THE USE OF REGISTER BANK 0

Applies to: A251 Macro Assembler

Answer


Information in this article applies to:


QUESTION

I am writing an assembly application and do not want register bank 0 to be used at all, because another project residing in my hardware uses it. Whatever I try, register bank 0 is always used. How do I keep register 0 from being used?

ANSWER

  1. Copy the file START251.A51 from the LIB directory into your project directory.
  2. Add START251.A51 to your project.
  3. Insert the following at the start of all your source files, including START251.A51:
    $REGISTERBANK(1)
    

    This forces your project to use register bank 1 instead of 0. The start up code contained in START251.A51 is always included in your project. However, by creating a copy and adding it to your project, you may customize it as shown in this solution.

MORE INFORMATION

Article last edited on: 2005-08-03 12:49:29

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential