From: cpg Date: Thu, 19 Nov 2009 22:12:51 +0000 (+0000) Subject: don't call __getdevdef in crt0.s, but make it a constructor of getdefdev.s X-Git-Tag: V2.13.1~56 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=61b28345085a5569dce220fc942f5cf722c0ff96;p=cc65 don't call __getdevdef in crt0.s, but make it a constructor of getdefdev.s git-svn-id: svn://svn.cc65.org/cc65/trunk@4473 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/atari/crt0.s b/libsrc/atari/crt0.s index 3c1b2d820..0ce03a101 100644 --- a/libsrc/atari/crt0.s +++ b/libsrc/atari/crt0.s @@ -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 diff --git a/libsrc/atari/getdefdev.s b/libsrc/atari/getdefdev.s index 7712684aa..9ccf31847 100644 --- a/libsrc/atari/getdefdev.s +++ b/libsrc/atari/getdefdev.s @@ -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!!)