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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/12/02 14:24
Read: times


 
#34315 - RE: Strange reaction to IF statement
Is the teller value more than 1 byte. If it is and you are changing the value in an interrupt then you have to disable interrupts when you fetch the multibyte value in the mainline code. Otherwise the mainline code may be in the process of reading part of the multi-byte value when the interrupt comes along and changes parts that may have already been read.

This is a common opps when writing in C when it takes multiple machine instructions to access multi byte data types.

Michael Karas


List of 15 messages in thread
TopicAuthorDate
Strange reaction to IF statement            01/01/70 00:00      
RE: Strange reaction to IF statement            01/01/70 00:00      
RE: Strange reaction to IF statement            01/01/70 00:00      
RE: Andy            01/01/70 00:00      
RE: Strange reaction to IF statement            01/01/70 00:00      
RE: Strange reaction to IF statement            01/01/70 00:00      
RE: Strange reaction to IF statement            01/01/70 00:00      
RE: Strange reaction to IF statement            01/01/70 00:00      
RE: Strange reaction to IF statement            01/01/70 00:00      
What do you mean, before it reached 100?            01/01/70 00:00      
RE: What do you mean, before it reached 100?            01/01/70 00:00      
RE: Strange reaction to IF statement            01/01/70 00:00      
RE: Strange reaction to IF statement            01/01/70 00:00      
RE: Strange reaction to IF statement            01/01/70 00:00      
RE: Strange reaction to IF statement            01/01/70 00:00      

Back to Subject List