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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/23/02 18:22
Read: times


 
#27847 - RE: Keil & reset vector


Stephane REY wrote:
-------------------------------
at the beginning of CSTARTUP.a51, there is this line :
EXTRN CODE (?C_START)
At the end, there is this one :
LJMP ?C_START

I understand that C_START has the applicative boot adress, but how seize it and how could I specify to the linker to put my main () in my C file to a specified adress (0000h for example).
As I told earlier, if I write more than the main function, this one could be implemented at any adress ....

Thanks
Stephane

Stephane,
If you just want to start your code, you can simply substitue "?C_START" with "main", that is,
        NAME    ?C_STARTUP

        EXTRN CODE (main)
        PUBLIC  ?C_STARTUP

        CSEG    AT  0
?C_STARTUP: LJMP    main 

;main can be at anywhere you want.

List of 24 messages in thread
TopicAuthorDate
Keil & reset vector            01/01/70 00:00      
RE: Keil & reset vector            01/01/70 00:00      
RE: Keil & reset vector            01/01/70 00:00      
RE: Keil & reset vector            01/01/70 00:00      
RE: Keil & reset vector more            01/01/70 00:00      
RE: Keil & reset vector            01/01/70 00:00      
RE: Keil & reset vector            01/01/70 00:00      
RE: Keil & reset vector            01/01/70 00:00      
RE: Keil & reset vector            01/01/70 00:00      
RE: Keil & reset vector            01/01/70 00:00      
RE: Keil & reset vector            01/01/70 00:00      
RE: Keil & reset vector            01/01/70 00:00      
RE: Keil & reset vector            01/01/70 00:00      
RE: Keil & reset vector            01/01/70 00:00      
RE: Keil & reset vector            01/01/70 00:00      
RE: Keil & reset vector            01/01/70 00:00      
RE: Keil & reset vector            01/01/70 00:00      
RE: Keil & reset vector            01/01/70 00:00      
RE: Keil & reset vector            01/01/70 00:00      
RE: Keil & reset vector            01/01/70 00:00      
RE: Keil & reset vector            01/01/70 00:00      
RE: Keil & reset vector            01/01/70 00:00      
RE: Keil & reset vector bat/amake            01/01/70 00:00      
RE: Keil & reset vector bat/amake            01/01/70 00:00      

Back to Subject List