]> git.sur5r.net Git - cc65/commitdiff
introduce STARTUP segment to Atari platform
authorcpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 4 Aug 2009 20:04:41 +0000 (20:04 +0000)
committercpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 4 Aug 2009 20:04:41 +0000 (20:04 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3995 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/atari/crt0.s
src/ld65/cfg/atari.cfg

index 68aa4425c0bce15680fdd8a5bcad21ebd6193578..8edc4046f09841e2d14242272a54f58864ba6409 100644 (file)
@@ -14,7 +14,7 @@
        .import         initlib, donelib, callmain
                .import         zerobss, pushax
        .import         _main, __filetab, getfd
-       .import         __LOWCODE_LOAD__, __ZPSAVE_LOAD__
+       .import         __STARTUP_LOAD__, __ZPSAVE_LOAD__
        .import         __RESERVED_MEMORY__
 .ifdef DYNAMIC_DD
        .import         __getdefdev
 
        .segment "EXEHDR"
        .word   $FFFF
-       .word   __LOWCODE_LOAD__
+       .word   __STARTUP_LOAD__
        .word   __ZPSAVE_LOAD__ - 1
 
 ; ------------------------------------------------------------------------
 ; Actual code
 
-       .segment        "LOWCODE"
+       .segment        "STARTUP"
 
        rts     ; fix for SpartaDOS / OS/A+
                ; they first call the entry point from AUTOSTRT and
@@ -185,6 +185,6 @@ old_shflok: .res    1
 old_lmargin:   .res    1
 
        .segment "AUTOSTRT"
-       .word   RUNAD
+       .word   RUNAD                   ; defined in atari.h
        .word   RUNAD+1
-       .word   __LOWCODE_LOAD__ + 1
+       .word   __STARTUP_LOAD__ + 1
index 146b8370d2d78ee39e7b31e8af3df69cff69146f..8d949c680b6f4a35b20d259be92ff97f1d3b2809 100644 (file)
@@ -13,6 +13,7 @@ MEMORY {
 }
 SEGMENTS {
     EXEHDR:   load = HEADER,  type = ro;
+    STARTUP:  load = RAM,     type = ro,  define = yes;
     LOWCODE:  load = RAM,     type = ro,  define = yes, optional = yes;
     INIT:     load = RAM,     type = ro,                optional = yes;
     CODE:     load = RAM,     type = ro,  define = yes;