startup code now resides in LOWCODE segment
git-svn-id: svn://svn.cc65.org/cc65/trunk@3444 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
.import initlib, donelib, callmain
|
.import initlib, donelib, callmain
|
||||||
.import zerobss, pushax
|
.import zerobss, pushax
|
||||||
.import _main, __filetab, getfd
|
.import _main, __filetab, getfd
|
||||||
.import __CODE_LOAD__, __BSS_LOAD__
|
.import __LOWCODE_LOAD__, __BSS_LOAD__
|
||||||
.ifdef DYNAMIC_DD
|
.ifdef DYNAMIC_DD
|
||||||
.import __getdefdev
|
.import __getdefdev
|
||||||
.endif
|
.endif
|
||||||
@@ -29,13 +29,13 @@
|
|||||||
|
|
||||||
.segment "EXEHDR"
|
.segment "EXEHDR"
|
||||||
.word $FFFF
|
.word $FFFF
|
||||||
.word __CODE_LOAD__
|
.word __LOWCODE_LOAD__
|
||||||
.word __BSS_LOAD__ - 1
|
.word __BSS_LOAD__ - 1
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; Actual code
|
; Actual code
|
||||||
|
|
||||||
.code
|
.segment "LOWCODE"
|
||||||
|
|
||||||
rts ; fix for SpartaDOS / OS/A+
|
rts ; fix for SpartaDOS / OS/A+
|
||||||
; they first call the entry point from AUTOSTRT and
|
; they first call the entry point from AUTOSTRT and
|
||||||
@@ -184,4 +184,4 @@ old_lmargin: .res 1
|
|||||||
.segment "AUTOSTRT"
|
.segment "AUTOSTRT"
|
||||||
.word $02E0
|
.word $02E0
|
||||||
.word $02E1
|
.word $02E1
|
||||||
.word __CODE_LOAD__ + 1
|
.word __LOWCODE_LOAD__ + 1
|
||||||
|
|||||||
Reference in New Issue
Block a user