]> git.sur5r.net Git - cc65/commitdiff
Move the _filetype variable into its own module, so people who want to change
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 15 Jul 2012 12:34:35 +0000 (12:34 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 15 Jul 2012 12:34:35 +0000 (12:34 +0000)
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

libsrc/cbm/Makefile
libsrc/cbm/filetype.s [new file with mode: 0644]
libsrc/cbm/filevars.s

index 31a27ac2d72e3af271c585c7e7f340f9fc3cb94e..639d69424d549b7ef9f16e27da3bf9f2e1948166 100644 (file)
@@ -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 (file)
index 0000000..4c5b0dd
--- /dev/null
@@ -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
+
+
index a1d5bd4e2df8fc0a97627357a86b0a200f4922bb..baaef66a46de2420743d5aaa6499ad6cff98ab52 100644 (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: