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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/20/07 15:03
Read: times


 
#137635 - Problem?
Responding to: ???'s previous message
Mike Stegmaier said:

Address 08h represents my primary pointer which increments every time a new character is received. then DPL of dptr is set to the value stored at 08h.


OK


Later, when I want to use the buffer, I make another pointer equal to the value at 08h.


Are you sure? Your pointer will be (according to the program you submitted) always pointing to the next available location in the buffer, as you bump the pointer after writing the received char to your memory buffer.

If you then make another pointer equal to the value at 08H, you will be reading "beyond" your data. You have no pointer to the "start of data" in your buffer.

regards

Patrick


List of 17 messages in thread
TopicAuthorDate
if I could crunch my code...            01/01/70 00:00      
   Optimisation            01/01/70 00:00      
      the original 8051 is the problem...            01/01/70 00:00      
         Duhh!            01/01/70 00:00      
            again, I want to "crunch my code"            01/01/70 00:00      
               starg with something that works.            01/01/70 00:00      
               Did You Look at Movx @R0 ?            01/01/70 00:00      
                  Thanks (after I tried it LOL)            01/01/70 00:00      
                     data sheet            01/01/70 00:00      
                     Hidden P2 Register?            01/01/70 00:00      
               Simple,but no simpler            01/01/70 00:00      
         Problem?            01/01/70 00:00      
   save a few bytes by using JBC            01/01/70 00:00      
   an alternative            01/01/70 00:00      
   WRONG            01/01/70 00:00      

Back to Subject List