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

Back to Subject List

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


 
#41758 - RE: p2 -- r0, r1
Responding to: ???'s previous message
Alisha:

It is possible to backup the DPTR similar to the way you describe. It is also possible to use the push and pop instructions as:

PUSH DPH
PUSH DPL
...execute code to do other things with DPTR
POP DPL
POP DPH

Your scheme can be used to save DPTR as a "buffer pointer" foe use next time you come into a subroutine for example.

What I showed above is useful when you come into some code and you want to save what is in DPTR during the time that you use DPTR with a new intermediate value.

Michael Karas


List of 9 messages in thread
TopicAuthorDate
p2 -- r0, r1            01/01/70 00:00      
   RE: p2 -- r0, r1            01/01/70 00:00      
   RE: p2 -- r0, r1            01/01/70 00:00      
      RE: p2 -- r0, r1            01/01/70 00:00      
         RE: p2 -- r0, r1            01/01/70 00:00      
            RE: p2 -- r0, r1            01/01/70 00:00      
               RE: p2 -- r0, r1            01/01/70 00:00      
                  RE: p2 -- r0, r1            01/01/70 00:00      
                     RE: p2 -- r0, r1            01/01/70 00:00      

Back to Subject List