Keil™, An ARM® Company

Technical Support

C51: ACCESSING REGISTER BANKS IN C


Information in this article applies to:

  • C51 All Versions

QUESTION

Is there a way to access register bank registers in C rather than using assembly language?

ANSWER

Yes. You may use the using function attribute to specify a different register bank. For example:

void func (void) using 2
{
}

The above function declaration uses register bank 2.

MORE INFORMATION

Last Reviewed: Friday, July 15, 2005


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