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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/02/05 08:47
Read: times


 
#104558 - And the magic instruction is...
Responding to: ???'s previous message
Andy Neil said:
Mahesh N said:
Since my program will start from say 60h, how can I start from that memory.

You can't start from that location - as you already know, the hardware of the 8051 will start execution after a reset with whatever instruction it finds at code location 0000.
Therefore, you have to place an appropriate instruction at code location 0000. From then on, it's all under your control.


Andy, please, have mercy. You know the best that sometimes those obvious details are the hardest to figure out. Also, you write the "bible" is not the best guide for the first steps - but is there anything like that? (I checked out the Tutorial - that's not exactly "the first steps with 8051", either, is it?)

Mahesh, the magic instruction that should sitting on 0000 and redirecting the flow of the program to "your start", being it on 0060h or anywhere else, is jump in any of its 3 forms - LJMP, SJMP, AJMP.


Jan Waclawek


PS. Mahesh, the 8052.com site has a particular etiquette which requires you to use your full name and please notice we do so - please correct your profile. Also please avoid using SMS-like abbreviations in your posts.


List of 10 messages in thread
TopicAuthorDate
Initializing the MC            01/01/70 00:00      
   MC?            01/01/70 00:00      
      mcu initialization            01/01/70 00:00      
         Why do you expect            01/01/70 00:00      
            Beginning            01/01/70 00:00      
         Tutorials            01/01/70 00:00      
            And the magic instruction is...            01/01/70 00:00      
               mcu initialization            01/01/70 00:00      
                  Another instruction            01/01/70 00:00      
               use it            01/01/70 00:00      

Back to Subject List