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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/15/08 19:19
Read: times


 
#150900 - options:
Responding to: ???'s previous message
  • you can add 16 to DPTR using
       mov   a,dpl
       add   a,#16
       mov   dpl,a
       mov   a,dph
       addc  a,#0
       mov   dph,a
    
    or something similar
  • you can perform 16 INC DPTRs (a bit boring), or the same in a loop (not really smart, either :-) )
  • as this is a fixed offset, you can simply perform the same calculation, using as a base (PositionN+16) rather than PositionN.

I did not quite understand what do you want to INC, please clarify.

JW

List of 15 messages in thread
TopicAuthorDate
Need help with RAM access via 8051            01/01/70 00:00      
   re            01/01/70 00:00      
      RE:            01/01/70 00:00      
      no need to put constant into dptr            01/01/70 00:00      
         How can I get the low and high parts?            01/01/70 00:00      
            what '51 assembler do you use?            01/01/70 00:00      
         push/pop A            01/01/70 00:00      
            In my asm push ACC works!            01/01/70 00:00      
               Another question:            01/01/70 00:00      
                  options:            01/01/70 00:00      
                     By inc I mean increase the value in RAM by 1            01/01/70 00:00      
                        once DPTR points to that value...            01/01/70 00:00      
            this is why it's dangerous...            01/01/70 00:00      
         You can push/pop [direct] though.            01/01/70 00:00      
            this is certainly correct...            01/01/70 00:00      

Back to Subject List