]> git.sur5r.net Git - cc65/commitdiff
Split libref.s into multiple files to prevent inclusion of unnecessary code.
authorChristian Groessler <chris@groessler.org>
Tue, 22 Apr 2014 10:48:36 +0000 (12:48 +0200)
committerChristian Groessler <chris@groessler.org>
Tue, 22 Apr 2014 10:50:07 +0000 (12:50 +0200)
libsrc/atari/libref.s
libsrc/atari/mouseref.s [new file with mode: 0644]
libsrc/atari/ser_libref.s

index 4f7cbbef6056a95066b834b43992ede19b81f50e..171bd6de6047ef15374814355d1b5ea5ad06d025 100644 (file)
@@ -2,19 +2,14 @@
 ; Oliver Schmidt, 2013-05-31
 ;
 
-        .export         em_libref, joy_libref, tgi_libref, ser_libref, mouse_libref
+        .export         em_libref, joy_libref, tgi_libref
         .import         _exit
-        .import         atari_ser_libref
 
 em_libref       := _exit
 joy_libref      := _exit
-ser_libref      := atari_ser_libref
 .ifdef __ATARIXL__
         .import CIO_handler
 tgi_libref      := CIO_handler
-        .import set_VTIMR1_handler
-mouse_libref    := set_VTIMR1_handler
 .else
-mouse_libref    := _exit
 tgi_libref      := _exit
 .endif
diff --git a/libsrc/atari/mouseref.s b/libsrc/atari/mouseref.s
new file mode 100644 (file)
index 0000000..b75df93
--- /dev/null
@@ -0,0 +1,13 @@
+;
+; Christian Groessler, 2014-04-22
+;
+
+        .export         mouse_libref
+
+.ifdef __ATARIXL__
+        .import set_VTIMR1_handler
+mouse_libref    := set_VTIMR1_handler
+.else
+        .import _exit
+mouse_libref    := _exit
+.endif
index 4b5c585087224af02e2b7d706ebbc598a8568ec5..89ef1e519a0c0e1576e02b7fe3c9c8f5e2f8dd31 100644 (file)
@@ -1,7 +1,12 @@
+;
+; Christian Groessler, 2014-04-22
+;
 
-       .include        "atari.inc"
+        .include        "atari.inc"
 
-       .import _close, pushax, popax
+        .export         ser_libref
+
+        .import         _close, pushax, popax
         .import         findfreeiocb
         .import         __do_oserror
         .import         fddecusage
         .import         clriocb
         .import         newfd
 
-       .export atari_ser_libref
+ser_libref      := atari_ser_libref
 
 .rodata
 
 atari_ser_libref:
-       .word   newfd
-       .word   _close
-       .word   pushax
-       .word   popax
+        .word   newfd
+        .word   _close
+        .word   pushax
+        .word   popax
         .word   findfreeiocb
         .word   __do_oserror
         .word   fddecusage
         .word   fdtoiocb
         .word   __inviocb
         .word   clriocb
-       .word   CIOV
+        .word   CIOV