]> git.sur5r.net Git - cc65/commitdiff
Move constructor code into the INIT segment. Note: Didn't change any
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 26 Feb 2005 09:38:46 +0000 (09:38 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 26 Feb 2005 09:38:46 +0000 (09:38 +0000)
obsolete modules.

git-svn-id: svn://svn.cc65.org/cc65/trunk@3407 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/atari/crt0.s
libsrc/atari/dosdetect.s
libsrc/atari/getargs.s

index cb5bd378afb474c614edc923772d81cd49e0843e..502cae621ca10291a6d5d7b89e4a0a43347d6f8e 100644 (file)
@@ -161,6 +161,8 @@ L2: lda     zpsave,x
 
 ; setup sp
 
+.segment        "INIT"
+
 initsp:
        lda     APPMHI
        sta     sp
@@ -168,7 +170,7 @@ initsp:
        sta     sp+1
        rts
 
-       .data
+       .data         
 
 zpsave:        .res    zpspace
 
index a9014fe93ab541c0612a954a1495fe9f65116524..4972953fa870f0f8424c96045fd32abf294371a5 100644 (file)
@@ -8,8 +8,11 @@
        .constructor    detect,26
        .export         __dos_type
 
+; ------------------------------------------------------------------------
 ; DOS type detection
 
+.segment        "INIT"
+
 detect:        lda     #ATARIDOS
        sta     __dos_type      ; set default
 
@@ -43,7 +46,10 @@ mydos:       lda     #MYDOS
        sta     __dos_type
        rts
 
-       .bss
+; ------------------------------------------------------------------------
+; Data
+
+       .bss
 
 __dos_type:    .res    1
 
index d2d7157eadba7f2682951695bef8f3edc6819705..7a43407c49838306faa722e47fd0776697dfc151 100644 (file)
@@ -12,8 +12,11 @@ SPACE        = 32            ; SPACE char.
        .import         __dos_type
        .constructor    initmainargs,25
 
+; --------------------------------------------------------------------------
 ; Get command line
 
+.segment        "INIT"
+
 initmainargs:
        lda     #0
        sta     __argc
@@ -32,7 +35,7 @@ nargdos:rts
 
 argdos:        lda     #ATEOL
        sta     ourcl+CL_SIZE
-        
+
 ; Move SpartaDOS command line to our own buffer
 
        lda     DOSVEC
@@ -112,7 +115,7 @@ eopar:
 
 finargs:
        lda     __argc
-       asl
+       asl           
        tax
        lda     #0
        sta     argv,x
@@ -123,7 +126,10 @@ finargs:
        stx     __argv+1
        rts
 
-       .bss
+; --------------------------------------------------------------------------
+; Data
+
+.bss
 
 argv:  .res    (1 + MAXARGS) * 2