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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/04/03 21:29
Read: times


 
#38275 - RE: clear internal ram and registers in C
"in sdcc you'll find registers declared in the header file and then its a matter of things like
A=0;"


The same applies in Keil C51 but, as Craig Pointed out, there is no guarantee that the compiler won't itself use A (or any other register) - thus defeating the whole object!

This is a job for assembler and, in Keil C51, startup.a51 is the place to do it - see the Manual!

List of 6 messages in thread
TopicAuthorDate
clear internal ram and registers in C            01/01/70 00:00      
   Why do this in C?            01/01/70 00:00      
      RE: Why do this in C?            01/01/70 00:00      
   RE: clear internal ram and registers in C            01/01/70 00:00      
      RE: clear internal ram and registers in C            01/01/70 00:00      
RE: clear internal ram and registers in C            01/01/70 00:00      

Back to Subject List