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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/03/07 18:09
Read: times


 
#140212 - Tabs, 8052.com and email
Responding to: ???'s previous message
Steve M. Taylor said:
David Prentice said:

I hope that I have not stirred up a hornets' nest.

Several postings appear regularly with tabs. It is only when this happens inside some ASM or C source code that it causes irritation.


Course, folks could just use the pre and /pre tags like it says in noob.pdf

Steve




Steve,

That is not foolproof. I have just pasted a function that is written with tabs between a pair of pre /pre tags:

It will look fine in Courier font on 8052.com but will be crunched up by the time it gets emailed to me by maillist@8052.com tomorrow morning.


unsigned char i2c_write(unsigned char ch)
{
	unsigned char twst;
	while ((SSCON & (1<<SI)) == 0) ;
	SSDAT = ch;
	SSCON = (1<<AA) | (1<<SSIE);
	while ((SSCON & (1<<SI)) == 0) ;
	switch (twst = TW_STATUS) {
		case TW_MT_SLA_ACK:
		case TW_MT_DATA_ACK:
		case TW_MR_SLA_ACK:
		case TW_MR_DATA_ACK: break;
		default: twst = 0; break;
	}
	return twst;
}



I apologise in advance if this comes through me email in good condition.

David

List of 26 messages in thread
TopicAuthorDate
DS1307 code problem for AT89C52            01/01/70 00:00      
   What have you got so far?            01/01/70 00:00      
      Things i have got so far            01/01/70 00:00      
         DS1307            01/01/70 00:00      
         Code layout            01/01/70 00:00      
         PHEW            01/01/70 00:00      
         Use GPS receiver for Lat, Day and Time            01/01/70 00:00      
            Very good idea!            01/01/70 00:00      
            excellent idea            01/01/70 00:00      
            Why Both            01/01/70 00:00      
               have you heard of this thing called "Google"            01/01/70 00:00      
         Comments on Formula            01/01/70 00:00      
            there is code for this at the Maxim website            01/01/70 00:00      
               GPS Receiver-Good Idea            01/01/70 00:00      
                  Why both??            01/01/70 00:00      
                  Using the DS1307            01/01/70 00:00      
                     re \"suggestion to Craig\"            01/01/70 00:00      
                        8052.com expanding tabs into spaces            01/01/70 00:00      
                           Just read            01/01/70 00:00      
                              Tabs, 8052.com and email            01/01/70 00:00      
                                 crunched by quoting AND email            01/01/70 00:00      
                                    Bug in quoting            01/01/70 00:00      
                                 pre tags            01/01/70 00:00      
                           it is not just the tabs            01/01/70 00:00      
                     TABs are entirely unreliable - just avoid them!            01/01/70 00:00      
   Tracking            01/01/70 00:00      

Back to Subject List