]> git.sur5r.net Git - cc65/blobdiff - libsrc/atmos/crt0.s
fix comments
[cc65] / libsrc / atmos / crt0.s
index 447f26101b0b6d611f022ae634a89f7f8c9b3e5e..4fe9d5cbc1b913e61b01734d9390556d2ff2000a 100644 (file)
@@ -2,24 +2,18 @@
 ; Startup code for cc65 (Oric version)
 ;
 ; By Debrune Jérôme <jede@oric.org> and Ullrich von Bassewitz <uz@cc65.org>
-;
-; This must be the *first* file on the linker command line
 ;
 
        .export         _exit
+        .export         __STARTUP__ : absolute = 1      ; Mark as startup
        .import         initlib, donelib
        .import         callmain, zerobss
-               .import         __RAM_START__, __RAM_SIZE__, __RAM_LAST__
+               .import         __RAM_START__, __RAM_SIZE__, __BSS_LOAD__
 
         .include        "zeropage.inc"
         .include        "atmos.inc"
 
 
-; ------------------------------------------------------------------------
-; Create an empty LOWCODE segment to avoid linker warnings
-
-.segment        "LOWCODE"
-
 ; ------------------------------------------------------------------------
 ; Oric tape header
 
@@ -32,7 +26,7 @@
         .byte   $00                             ; $2AF
         .byte   $80                             ; $2AE Machine code flag
         .byte   $C7                             ; $2AD Autoload flag
-        .dbyt   __RAM_START__ + __RAM_LAST__    ; $2AB
+        .dbyt   __BSS_LOAD__                    ; $2AB
         .dbyt   __RAM_START__                   ; $2A9
         .byte   $00                             ; $2A8
         .byte   $00                             ; Zero terminated name
@@ -105,7 +99,7 @@ L2:  lda     zpsave,x
 ; ------------------------------------------------------------------------
 ; Data
 
-.data
+.segment        "ZPSAVE"
 
 zpsave:        .res    zpspace