mirror of
https://github.com/cc65/cc65.git
synced 2025-01-11 11:30:13 +00:00
Split libref.s into multiple files to prevent inclusion of unnecessary code.
This commit is contained in:
parent
cbc2179887
commit
eefd33d309
@ -2,19 +2,14 @@
|
|||||||
; Oliver Schmidt, 2013-05-31
|
; 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 _exit
|
||||||
.import atari_ser_libref
|
|
||||||
|
|
||||||
em_libref := _exit
|
em_libref := _exit
|
||||||
joy_libref := _exit
|
joy_libref := _exit
|
||||||
ser_libref := atari_ser_libref
|
|
||||||
.ifdef __ATARIXL__
|
.ifdef __ATARIXL__
|
||||||
.import CIO_handler
|
.import CIO_handler
|
||||||
tgi_libref := CIO_handler
|
tgi_libref := CIO_handler
|
||||||
.import set_VTIMR1_handler
|
|
||||||
mouse_libref := set_VTIMR1_handler
|
|
||||||
.else
|
.else
|
||||||
mouse_libref := _exit
|
|
||||||
tgi_libref := _exit
|
tgi_libref := _exit
|
||||||
.endif
|
.endif
|
||||||
|
13
libsrc/atari/mouseref.s
Normal file
13
libsrc/atari/mouseref.s
Normal 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
|
@ -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 findfreeiocb
|
||||||
.import __do_oserror
|
.import __do_oserror
|
||||||
.import fddecusage
|
.import fddecusage
|
||||||
@ -10,19 +15,19 @@
|
|||||||
.import clriocb
|
.import clriocb
|
||||||
.import newfd
|
.import newfd
|
||||||
|
|
||||||
.export atari_ser_libref
|
ser_libref := atari_ser_libref
|
||||||
|
|
||||||
.rodata
|
.rodata
|
||||||
|
|
||||||
atari_ser_libref:
|
atari_ser_libref:
|
||||||
.word newfd
|
.word newfd
|
||||||
.word _close
|
.word _close
|
||||||
.word pushax
|
.word pushax
|
||||||
.word popax
|
.word popax
|
||||||
.word findfreeiocb
|
.word findfreeiocb
|
||||||
.word __do_oserror
|
.word __do_oserror
|
||||||
.word fddecusage
|
.word fddecusage
|
||||||
.word fdtoiocb
|
.word fdtoiocb
|
||||||
.word __inviocb
|
.word __inviocb
|
||||||
.word clriocb
|
.word clriocb
|
||||||
.word CIOV
|
.word CIOV
|
||||||
|
Loading…
x
Reference in New Issue
Block a user