From 61b28345085a5569dce220fc942f5cf722c0ff96 Mon Sep 17 00:00:00 2001 From: cpg Date: Thu, 19 Nov 2009 22:12:51 +0000 Subject: [PATCH] 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 --- libsrc/atari/crt0.s | 6 ------ libsrc/atari/getdefdev.s | 1 + 2 files changed, 1 insertion(+), 6 deletions(-) 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!!) -- 2.39.5