From: cpg Date: Tue, 4 Aug 2009 20:04:41 +0000 (+0000) Subject: introduce STARTUP segment to Atari platform X-Git-Tag: V2.13.0rc1~260 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9cafacaf6dc80e03719a55444bd9b564f3db516d;p=cc65 introduce STARTUP segment to Atari platform git-svn-id: svn://svn.cc65.org/cc65/trunk@3995 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/atari/crt0.s b/libsrc/atari/crt0.s index 68aa4425c..8edc4046f 100644 --- a/libsrc/atari/crt0.s +++ b/libsrc/atari/crt0.s @@ -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 @@ -29,13 +29,13 @@ .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 diff --git a/src/ld65/cfg/atari.cfg b/src/ld65/cfg/atari.cfg index 146b8370d..8d949c680 100644 --- a/src/ld65/cfg/atari.cfg +++ b/src/ld65/cfg/atari.cfg @@ -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;