]> git.sur5r.net Git - cc65/blobdiff - libsrc/c64/mouse.s
Fixed a bug
[cc65] / libsrc / c64 / mouse.s
index 5886fc8c10120489f15d511d84e84e4fc516a5fd..23c228a7bc85b242e0385db1bae41c2cdae982e7 100644 (file)
@@ -12,8 +12,8 @@
        .export         _mouse_buttons, _mouse_info
 
        .import         _readjoy
-               .import         popa, popax, addysp1
-       .importzp       ptr1, sp, sreg
+               .import         popax, addysp1
+       .importzp       ptr1, sp
 
        .include        "c64.inc"
 
@@ -35,13 +35,10 @@ XCORR               = SPRITE_WIDTH
 
 ; --------------------------------------------------------------------------
 ;
-; unsigned char __fastcall__ mouse_init (unsigned char port,
-;                                       unsigned char type);
+; unsigned char __fastcall__ mouse_init (unsigned char type);
 ;
 
 _mouse_init:
-       jsr     popa                    ; Ignore type and port
-
                lda     OldIRQ+1                ; Already initialized?
                bne     AlreadyInitialized      ; Jump if yes