From: uz Date: Sun, 15 Jul 2012 12:34:35 +0000 (+0000) Subject: Move the _filetype variable into its own module, so people who want to change X-Git-Tag: V2.14~286 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a62958764dc5f6a80aedfcd51a328200b9a77e41;p=cc65 Move the _filetype variable into its own module, so people who want to change the default can replace exactly this module without interfering with other stuff. git-svn-id: svn://svn.cc65.org/cc65/trunk@5785 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/cbm/Makefile b/libsrc/cbm/Makefile index 31a27ac2d..639d69424 100644 --- a/libsrc/cbm/Makefile +++ b/libsrc/cbm/Makefile @@ -74,6 +74,7 @@ S_OBJS = c_acptr.o \ exehdr.o \ filedes.o \ filename.o \ + filetype.o \ filevars.o \ gotox.o \ gotoxy.o \ diff --git a/libsrc/cbm/filetype.s b/libsrc/cbm/filetype.s new file mode 100644 index 000000000..4c5b0dd7f --- /dev/null +++ b/libsrc/cbm/filetype.s @@ -0,0 +1,15 @@ +; +; Ullrich von Bassewitz, 2012-07-15 +; +; Default file type used when creating new files +; + + .export __filetype + + +.data + +__filetype: + .byte 's' ; Create sequential files by default + + diff --git a/libsrc/cbm/filevars.s b/libsrc/cbm/filevars.s index a1d5bd4e2..baaef66a4 100644 --- a/libsrc/cbm/filevars.s +++ b/libsrc/cbm/filevars.s @@ -4,18 +4,11 @@ ; Variables used for CBM file I/O ; - .export __filetype .export __curunit .constructor initcurunit, 30 .importzp devnum -.data - -__filetype: - .byte 's' ; Create sequential files by default - - .bss __curunit: