mirror of
https://github.com/cc65/cc65.git
synced 2024-12-22 12:30:41 +00:00
Added STARTUP and LOWCODE segments
git-svn-id: svn://svn.cc65.org/cc65/trunk@1776 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
2242939c78
commit
07b040fe5a
@ -7,7 +7,7 @@
|
||||
|
||||
; no __hinit
|
||||
|
||||
.export _exit
|
||||
.export _exit
|
||||
.import initlib, donelib
|
||||
.import pushax
|
||||
.import _main
|
||||
@ -42,7 +42,14 @@ regbank = $a3 ; 6 bytes hopefully not used by Kernal
|
||||
.reloc
|
||||
|
||||
; ------------------------------------------------------------------------
|
||||
; Actual code
|
||||
; Create an empty LOWCODE segment to avoid linker warnings
|
||||
|
||||
.segment "LOWCODE"
|
||||
|
||||
; ------------------------------------------------------------------------
|
||||
; Place the startup code in a special segment.
|
||||
|
||||
.segment "STARTUP"
|
||||
|
||||
; Clear the BSS data
|
||||
|
||||
@ -77,4 +84,4 @@ regbank = $a3 ; 6 bytes hopefully not used by Kernal
|
||||
_exit: jsr donelib ; Run module destructors
|
||||
|
||||
jmp $c22c ; EnterDeskTop
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user