mirror of
https://github.com/cc65/cc65.git
synced 2025-04-03 15:29:44 +00:00
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
This commit is contained in:
parent
38901e1614
commit
61b2834508
@ -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
|
||||
|
||||
|
@ -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!!)
|
||||
|
Loading…
x
Reference in New Issue
Block a user