]> git.sur5r.net Git - cc65/commitdiff
don't call __getdevdef in crt0.s, but make it a constructor of getdefdev.s
authorcpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 19 Nov 2009 22:12:51 +0000 (22:12 +0000)
committercpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 19 Nov 2009 22:12:51 +0000 (22:12 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4473 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/atari/crt0.s
libsrc/atari/getdefdev.s

index 3c1b2d820e48bc3621558d72fda1eda4ae6674d0..0ce03a101daf4ed6d4d0b3dd3a8b16dd210ee0f2 100644 (file)
@@ -16,9 +16,6 @@
        .import         _main, __filetab, getfd
        .import         __STARTUP_LOAD__, __ZPSAVE_LOAD__
        .import         __RESERVED_MEMORY__
-.ifdef DYNAMIC_DD
-       .import         __getdefdev
-.endif
 
         .include        "zeropage.inc"
        .include        "atari.inc"
@@ -78,9 +75,6 @@ L1:   lda     sp,x
 ; Call module constructors
 
        jsr     initlib
-.ifdef DYNAMIC_DD
-       jsr     __getdefdev
-.endif
 
 ; set left margin to 0
 
index 7712684aad5c077cc57c0c6d136216b81d9cb4bd..9ccf3184742b20d325a0398454f1a74bc1775e7d 100644 (file)
@@ -19,6 +19,7 @@
        .export         __getdefdev             ; get default device (e.g. "D1:")
 .ifdef DYNAMIC_DD
        .export         __defdev
+       .constructor    __getdefdev,24
 .endif
 
 ; Get default device (LBUF will be destroyed!!)