does a variable reset after being read ?

davidwf

Senior Member
As per the title, does a stored variable (e.g. a result stored in say b2) reset to zero after being read ?

When I ran the sim on a previous project I was woking on I am sure that it did get reset to zero...is that right ?.....should it ? or will it stay there until a new number is stored there ?

Thanks in advance...I KNOW someone will have the answer !
 

Jeremy Leach

Senior Member
Hi, variables only change if you change their value ;) But one thing to watch is that the word variables are made up of the byte variables so, for instance, changing w0 (which is made up of b0 and b1) will change the values of b0 and b1.
 
Top