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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/26/05 08:31
Read: times


 
#100123 - Review index boundary value
Responding to: ???'s previous message
In comhandle(),

packet[byte_no]=SBUF; // if "byte_no" is 8
byte_no++; // "byte_no" is incremented to 9
if(byte_no==9) // Then, "byte_no" will be cleared
{
byte_no=0;

Thus, packet[9] is never visited, packet[0] is overwritten.

Tsuneo

List of 18 messages in thread
TopicAuthorDate
More encounters with Keil C51            01/01/70 00:00      
   Simulate it!            01/01/70 00:00      
      It is not an homework            01/01/70 00:00      
         Proving nothing.            01/01/70 00:00      
         LCD            01/01/70 00:00      
      Simulation Results            01/01/70 00:00      
         Pointless            01/01/70 00:00      
            Got it !!            01/01/70 00:00      
            update            01/01/70 00:00      
   do you set SCON as a byte or bitwise ?            01/01/70 00:00      
   not an answer, but why do you call a fun            01/01/70 00:00      
      I don't C            01/01/70 00:00      
         inline            01/01/70 00:00      
            Compiler Tries            01/01/70 00:00      
            OT: inline, Keil ARM            01/01/70 00:00      
               C99 does specify inline as a keyword.            01/01/70 00:00      
   Review index boundary value            01/01/70 00:00      
      Even More Pointless simulation!            01/01/70 00:00      

Back to Subject List