.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
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
}
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;