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 support@ccsinfo.com

#zero_ram zeroes after reset_cpu()?

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



Joined: 13 May 2004
Posts: 90
Location: Nashville, TN

View user's profile Send private message Send e-mail Visit poster's website

#zero_ram zeroes after reset_cpu()?
PostPosted: Thu Feb 17, 2005 10:57 am     Reply with quote

Does the #zero_ram directive cause RAM to be zeroed whenever the program restarts? Does it zero RAM after a call to reset_cpu()?

--
Jeff S.
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Thu Feb 17, 2005 12:07 pm     Reply with quote

Think about it. If the program counter starts back at 0 then wouldn't it execute those instructions again.

On one project, I actually wrote my own routine to zero the ram because I needed to save the data on certain resets to the CPU. CCS doesn't allow you to control when this zeroing occurs.
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