SDCC Startup für Intel 8051

Gast #3253197
Lesenswert?

Ich versuche gerade ein unter Keil entwickeltes Project unter SDCC zu 
kompilieren. Leider scheitere ich schon beim startup..

Hier die startup.A51 die unter Keil ausgeführt wird:
1
EXTRN CODE (main)
2

3
  PUBLIC  ?C_STARTUP
4

5
  CSEG    AT      0xC000
6
?C_STARTUP:
7
    LJMP    main
8

9
END


In der SDCC Doku steht:

"Let’s assume the return value of _sdcc_external_startup() in 
crtstart.asm should not be checked (or _sdcc_external_startup() should 
not be called at all). The recommended way would be to copy crtstart.asm 
(f.e. from 
http://sdcc.svn.sourceforge.net/viewvc/*checkout*/sdcc/trunk/sdcc/
device/lib/mcs51/crtstart.asm) into the source directory, adapt it 
there, then assemble it with sdas8051 -plosgff 6 crtstart.asm and when 
linking your project explicitly specify crtstart.rel. As a bonus a 
listing of the relocated object file crtstart.rst is generated."


Alles was ich erreichen möchte, ist das mein startup code auf adresse 
0xSOWIESO gepackt wird und dann zu meiner main() springt.

Kann mir da evtl. jemand helfen?

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren