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

Back to Subject List

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


 
#40298 - How to handle program code boundaries?
I get the following message when trying to assemble some code (using Paulmon's as31):

Warning, Relative offset exceeds -128 / +127

The line in question is:-

cjne a,#0x52,ih_L1

Now I understand that the error has occurred because cjne only allows relative addressing within a code page (256 bytes). My question is how would a professional programmer avoid this situation? Would they specify the page boundaries using .org statements?

Thanks for any help! I'm fairly new to 8052 assembly so sorry if this is a 'stupid' question!


List of 9 messages in thread
TopicAuthorDate
How to handle program code boundaries?            01/01/70 00:00      
   RE: How to handle program code boundaries?            01/01/70 00:00      
      RE: How to handle program code boundaries?            01/01/70 00:00      
         RE: How to handle program code boundaries?            01/01/70 00:00      
            RE: How to handle program code boundaries?            01/01/70 00:00      
               RE: How to handle program code boundaries?            01/01/70 00:00      
   RE: How to handle program code boundaries?            01/01/70 00:00      
      RE: How to handle program code boundaries?            01/01/70 00:00      
         RE: How to handle program code boundaries?            01/01/70 00:00      

Back to Subject List