]> git.sur5r.net Git - cc65/commitdiff
removed obsolete readjoy function (replaced by modular joystick driver - both static...
authorizydorst <izydorst@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 14 Feb 2003 15:33:47 +0000 (15:33 +0000)
committerizydorst <izydorst@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 14 Feb 2003 15:33:47 +0000 (15:33 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1984 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/geos/mousesprite/Makefile
libsrc/geos/mousesprite/readjoy.s [deleted file]

index 842c3bf37327cf6115c518e42a109320fa4b4115..222099cb5c8e33a9c9a9d0937c7ab80fa57801c1 100644 (file)
@@ -12,7 +12,7 @@ S_OBJS        = startmousemode.o clearmousemode.o mouseup.o mouseoff.o\
          drawsprite.o possprite.o enablsprite.o disablsprite.o\
          ismseinregion.o inittextprompt.o promptoff.o prompton.o\
          getnextchar.o\
-         mouse.o readjoy.o
+         mouse.o
 
 all: $(S_OBJS)
 
diff --git a/libsrc/geos/mousesprite/readjoy.s b/libsrc/geos/mousesprite/readjoy.s
deleted file mode 100644 (file)
index 8594873..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-;
-; Ullrich von Bassewitz, 23.09.1998
-;
-; unsigned readjoy (unsigned char joy);
-;
-
-       .export         _readjoy
-
-       .include        "../inc/geossym.inc"
-
-.proc  _readjoy
-
-       php
-       sei                     ; disable IRQ
-       lda     $01
-       pha
-       lda     #$35
-       sta     $01             ; enable I/O
-
-       tax                     ; Joystick number into X
-       bne     joy2
-
-; Read joystick 1
-
-joy1:  
-       lda     #$7F
-       sta     cia1base
-       lda     cia1base+1
-back:  tax
-       pla
-       sta     $01
-       plp
-       txa
-       and     #$1F
-       eor     #$1F
-       ldx     #0
-       rts
-
-; Read joystick 2
-
-joy2:  lda     #$E0
-       ldy     #$FF
-       sta     cia1base+2
-       lda     cia1base+1
-       sty     cia1base+2
-       jmp     back
-
-.endproc