ARM Technical Support Knowledge Articles

BANK SWITCHING USING ASSEMBLY

Applies to: C51 C Compiler

Answer

QUESTION

Is bankswitching only usable in C or can I also use assembler?

ANSWER

It is physically possible to do bankswitching in assembler, although it is not at all advisable. The naming conventions used by the compiler must be followed explicitly at all times. Perhaps the easiest way to go about this is to write a sample program in C. Once completed, add the following to the top of the source file: #PRAGMA SRC. This will generate a .SRC file which contains the comparable assembler source to your C program. Use this to base your application on.

Article last edited on: 2004-05-16 17:45:56

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