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
This commit is contained in:
uz 2012-07-15 12:34:35 +00:00
parent f7f4d01e52
commit a62958764d
3 changed files with 16 additions and 7 deletions

View File

@ -74,6 +74,7 @@ S_OBJS = c_acptr.o \
exehdr.o \
filedes.o \
filename.o \
filetype.o \
filevars.o \
gotox.o \
gotoxy.o \

15
libsrc/cbm/filetype.s Normal file
View File

@ -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

View File

@ -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: