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

Back to Subject List

Thread Closed: Issue successfully resolved

???
04/04/07 22:57
Read: times


 
#136634 - not within a while statement in 8051
Hi,

I have the following code in 'C':


MSG_D = 03;
while( !( ReadRegister( MSG_D ) & 08 ) );
MSG_E = 4;



does this mean that that the control comes out of the loop to "MSG_E =4;" if the value
"ReadRegister( MSG_D ) & 08 " is = 11110111b or the control comes out of the loop to "MSG_E =4;" if "ReadRegister( MSG_D ) & 08 " is 0?

Thanks


List of 8 messages in thread
TopicAuthorDate
not within a while statement in 8051            01/01/70 00:00      
   Textbook time            01/01/70 00:00      
      sorry about that            01/01/70 00:00      
         08 is not a valid number!            01/01/70 00:00      
      Compound statements            01/01/70 00:00      
         Thanks            01/01/70 00:00      
   Beware of leading zeros!            01/01/70 00:00      
   Evaluate it yourself!            01/01/70 00:00      

Back to Subject List