|ARM Technical Support Knowledge Articles|
Applies to: C51 C Compiler
Is bankswitching only usable in C or can I also use assembler?
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
Did you find this article helpful? Yes No
How can we improve this article?