Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/09/07 22:26
Read: times


 
#140492 - 2nd Question about register bank
Responding to: ???'s previous message
Andy Neil said:
Spencer Lee said:
When creating a program in “C” (using interrupts),. Mangament is handled by the compiler.

Keil C51 does not manage register banks - the programmer has complete control:

http://www.keil.com/support/m...erbank.htm
http://www.keil.com/support/m...nkspec.htm
http://www.keil.com/support/m...access.htm



I would like to confirm my understanding of register bank management:


void myFunction(void) using 0{

}
unsigned char myFunction1(unsigned char) using 0{

}

Timer1() Interrupt3 using1{
}

void main void using 0{
unsigned char myRtnChar;
myRtnChar = myFunction1(10);
myFunction();
}

For the ISR do I need to push and pop the reg’s R0 to R7?

spencer


List of 6 messages in thread
TopicAuthorDate
Register bank usage            01/01/70 00:00      
   Not Keil!            01/01/70 00:00      
      2nd Question about register bank            01/01/70 00:00      
         C handles the details            01/01/70 00:00      
            C handles the details            01/01/70 00:00      
               a simple 'rule'            01/01/70 00:00      

Back to Subject List