Joined: 13 May 2004 Posts: 90 Location: Nashville, TN
#zero_ram zeroes after reset_cpu()?
Posted: Thu Feb 17, 2005 10:57 am
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
Posted: Thu Feb 17, 2005 12:07 pm
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.
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