CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

#reserved 0x7F

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
olo76



Joined: 26 Aug 2010
Posts: 1

View user's profile Send private message

#reserved 0x7F
PostPosted: Thu Aug 26, 2010 1:26 am     Reply with quote

Hello,

My bootloader (pic16f887) use ram address 0x7F (for save PCLATH register), and if the interrupt in ccs compiler 4.099 use address 0x7F (for save W register). Directive #reserved 0x7F not working, why?

Regards, Olek
Ttelmah



Joined: 11 Mar 2010
Posts: 19513

View user's profile Send private message

PostPosted: Thu Aug 26, 2010 2:57 am     Reply with quote

Various comments:
1) Why worry?. After the main code has loaded, the bootloader is no longer involved in running, so why does it matter?.
2) The 'reason', is that CCS has already reserved this byte, as 'not used' by C. It is flagged as non available, specifically for the interrupt handler, so 'reserving' it has no effect. Unlike the scratch area (which is similarly reserved), which can be relocated by the device editor, this byte seems to be 'fixed'.
3) Given '2', I'd personally play it simple, and if the main code overwriting the byte does matter, alter to bootloader to use 0x70.

Best Wishes
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group