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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/28/03 20:37
Read: times


 
#57398 - Example Formatted source code
Responding to: ???'s previous message
if (TI!=0){ 
   TI = 0; // Now clear it 
   if (u8TransmitIn != u8TransmitOut){ 

      //this is for even parity 
      ACC = au8TransmitBuffer [u8TransmitOut++]; 
      TB8 = P; //PSW.P = even parity of ACC //TB8 = ~P; //odd parity 
      SBUF = ACC; 

      //this is for no parity 
      // SBUF = au8TransmitBuffer [u8TransmitOut++]; 
   } 

NB: Do not use TABs - stick to spaces.
Spaces can be relied upon; TABs cannot - avoid them!

List of 8 messages in thread
TopicAuthorDate
Parity Calculation            01/01/70 00:00      
   RE: Parity Calculation            01/01/70 00:00      
      RE: Parity Calculation            01/01/70 00:00      
         RE: Parity Calculation            01/01/70 00:00      
   RE: Parity Calculation            01/01/70 00:00      
      Formatting for source code            01/01/70 00:00      
         Example Formatted source code            01/01/70 00:00      
            RE: Example Formatted source code            01/01/70 00:00      

Back to Subject List