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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/28/04 09:31
Read: times


 
#76525 - RE: return address
Responding to: ???'s previous message
Please explain what


     MOV  AR0,#LOW(func) 
     MOV  AR1,#HIGH(func) 
     PUSH AR0 
     PUSH AR1 
     RET 


does for you which

     LJMP func


doesn't, besides
- destroying the contents of AR0 and AR1,
- using 2 bytes on the stack for a few microseconds,
- taking 11 instruction cycles in stead of the LJMP's 3, and
- take up 11 bytes of code memory in stead of the LJMP's 3.

Please explain. I fail to see the point.


List of 20 messages in thread
TopicAuthorDate
return address            01/01/70 00:00      
   RE: return address            01/01/70 00:00      
      RE: return address            01/01/70 00:00      
         RE: return address            01/01/70 00:00      
         RE: return address            01/01/70 00:00      
            How many times...?            01/01/70 00:00      
               RE: How many times...?            01/01/70 00:00      
               RE: How many times...?            01/01/70 00:00      
            RE: return address            01/01/70 00:00      
            RE: return address            01/01/70 00:00      
               RE: return address            01/01/70 00:00      
                  RE: return address            01/01/70 00:00      
                     RE: return address            01/01/70 00:00      
                        RE: return address            01/01/70 00:00      
                           RE: return address            01/01/70 00:00      
                        RE: return address            01/01/70 00:00      
                     RE: return address            01/01/70 00:00      
   RE: return address            01/01/70 00:00      
      RE: return address            01/01/70 00:00      
         Why does it bother you?            01/01/70 00:00      

Back to Subject List