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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/05/06 16:20
Modified:
  03/05/06 16:24

Read: times


 
#111299 - to C or not to C
Responding to: ???'s previous message
Jez,

thanks for the example, Jon could perhaps include a C-example, but...

As I said above, the value of the examples lies in the comments - and this one is not too extensively commented, is it? Also, it contains the typical C-ish showoff, like:
rbuf [(rpos+rcnt++) % RBUFLEN]
if (busy = xcnt) {   /* Assignment, _not_ comparison! */
which makes its value as a comprehensible example questionable, especially for those who are newbies generally - it means, both in C and in '51.

However, it could be cleaned up and commented so if you or anybody else would like to do that part...

Jan Waclawek

PS. Richard, please note, this IS C and still no putch/getch... :-)

List of 20 messages in thread
TopicAuthorDate
interrupt driven serial: RFC            01/01/70 00:00      
   It must be perfect!            01/01/70 00:00      
      I don't believe            01/01/70 00:00      
         Validation            01/01/70 00:00      
            well ... I've looked at it ...            01/01/70 00:00      
               request for comment on comment            01/01/70 00:00      
                  let's take this a little at a time ...            01/01/70 00:00      
            OK then give yours            01/01/70 00:00      
   Intel Original            01/01/70 00:00      
      on byte buffer            01/01/70 00:00      
   c version            01/01/70 00:00      
      Coloring            01/01/70 00:00      
         html syntax colouring            01/01/70 00:00      
      to C or not to C            01/01/70 00:00      
         yeah but thats the point            01/01/70 00:00      
            How true for "real C"            01/01/70 00:00      
               excellent idea            01/01/70 00:00      
      asm, in the same style            01/01/70 00:00      
   This may not work well ...            01/01/70 00:00      
      How?            01/01/70 00:00      

Back to Subject List