1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 19:29:37 +00:00

Split libref.s into multiple files to prevent inclusion of unnecessary code.

This commit is contained in:
Christian Groessler 2014-04-22 12:48:36 +02:00
parent cbc2179887
commit eefd33d309
3 changed files with 27 additions and 14 deletions

View 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

13
libsrc/atari/mouseref.s Normal file
View File

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

View File

@ -1,6 +1,11 @@
;
; Christian Groessler, 2014-04-22
;
.include "atari.inc"
.export ser_libref
.import _close, pushax, popax
.import findfreeiocb
.import __do_oserror
@ -10,7 +15,7 @@
.import clriocb
.import newfd
.export atari_ser_libref
ser_libref := atari_ser_libref
.rodata