1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 04:30:10 +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,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
@ -10,19 +15,19 @@
.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