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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/30/03 12:35
Read: times


 
#57510 - RE: More on DIP Switch Code
Responding to: ???'s previous message
Umm, yeah! I have not thought about that, sorry
Btw, here I remember one thing which confuses me: could anybody explain me, why the "@" is used with JMP @A+DPTR ?
Realy, if I use MOV A,@R0 then it means that Accumulator will be loaded with content of memory which address is stored in R0. In short: the sign "@" means Indirect addressing, does it not?
But what does mean JMP @A+DPTR ?
On first look, it means that program should jump to address which is sum of DPTR content and the value from address which presents in ACC (like @R0).
From other side, if it would be JMP @(A+DPTR) then program jumps to address which is loaded from [program/external] memory at address calcualted as sum of DPTR and accumulator.
Why it is not a simple JMP A+DPTR ?
Thanks!

List of 16 messages in thread
TopicAuthorDate
More on DIP Switch Code            01/01/70 00:00      
   RE: More on DIP Switch Code            01/01/70 00:00      
      RE: More on DIP Switch Code            01/01/70 00:00      
         RE: More on DIP Switch Code            01/01/70 00:00      
            RE: More on DIP Switch Code            01/01/70 00:00      
      RE: More on DIP Switch Code            01/01/70 00:00      
      RE: More on DIP Switch Code            01/01/70 00:00      
         RE: More on DIP Switch Code            01/01/70 00:00      
            RE: More on DIP Switch Code            01/01/70 00:00      
               RE: More on DIP Switch Code            01/01/70 00:00      
                  RE: More on DIP Switch Code            01/01/70 00:00      
      RE: More on DIP Switch Code            01/01/70 00:00      
         RE: More on DIP Switch Code            01/01/70 00:00      
      RE: More on DIP Switch Code            01/01/70 00:00      
         RE: More on DIP Switch Code            01/01/70 00:00      
   RE: More on DIP Switch Code            01/01/70 00:00      

Back to Subject List