|
|||||||||||
Technical Support Support Resources
Product Information |
C51: Programs That Use One RegisterbankInformation in this article applies to:
QUESTIONWhat does the ONEREGBANK directive do? ANSWERThe ONEREGBANK directive offers enhanced support for programs that use a single register bank. By default, the C51 Compiler ensures that registerbank 0 is selected by interrupt service routines (ISRs) that are declared without a using directive. This is done by adding the instruction:
to the interrupt service routine entry code. This is necessary when the using directive is omitted on high-priority ISRs that may interrupt other low-priority ISRs (that have a register bank specified with the using directive). This also applies to RTX-51 and RTX-51 Tiny applications. You may use the ONEREGBANK directive to specify that only registerbank 0 is used in your application. Then, C51 will not generate the additional MOV PSW,#0 instruction for ISRs. SEE ALSOLast Reviewed: Thursday, February 25, 2021 | ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.