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

Back to Subject List

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


 
#82482 - Different jmps
Responding to: ???'s previous message
A small routine with sjmp can be placed over a 2K border without problem, as long as the jumps are within 128.

Some assemblers can take care of the problem for you, you use JMP and the assembler insert the "best" jump instruction, it has some advantages when the code grows, part of the code goes over to next page and you have to change AJMP to LJMP. Beware of jump tables which must use a known JUMP, because LJMP takes 3 bytes.

Anders



List of 22 messages in thread
TopicAuthorDate
sjmp vs ajmp            01/01/70 00:00      
   as you said            01/01/70 00:00      
   Different jmps            01/01/70 00:00      
      re:AJMP, SJMP            01/01/70 00:00      
         AJMP is 2 bytes LJMP is 3            01/01/70 00:00      
            LJMP was not the question            01/01/70 00:00      
               AJMP vs SJMP            01/01/70 00:00      
   Relocable.            01/01/70 00:00      
      relocatable            01/01/70 00:00      
         Re:Relocatable            01/01/70 00:00      
            relocatable - not in a 51            01/01/70 00:00      
               Relocatable Code is Valid            01/01/70 00:00      
                  Not JMPs, relocatable            01/01/70 00:00      
                     I can anticipate all kinds of situations            01/01/70 00:00      
                     If I can devise concepts others will too            01/01/70 00:00      
                        "driver".            01/01/70 00:00      
                           Re: driver            01/01/70 00:00      
                              maybe... maybe not.            01/01/70 00:00      
      16M derivatives...            01/01/70 00:00      
         SJMP is 2 bytes            01/01/70 00:00      
            Maybe he means additional bytes            01/01/70 00:00      
               yes.            01/01/70 00:00      

Back to Subject List