Keil™, An ARM® Company

Technical Support

C51: BANK SWITCHING USING ASSEMBLY

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.

Last Reviewed: Sunday, May 16, 2004


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