]> git.sur5r.net Git - cc65/commitdiff
Don't install the IRQ vector if joy_install returns an error
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 5 Sep 2005 20:24:37 +0000 (20:24 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 5 Sep 2005 20:24:37 +0000 (20:24 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3624 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/joystick/joy-kernel.s

index 0bb49463f15667cfb041bc4759f3137d2915b749..7961e1c2a03f0febc74c9356579ab0648326e42b 100644 (file)
@@ -77,6 +77,8 @@ _joy_install:
         bne     @L2
 
         jsr     joy_install             ; Call driver install routine
+        tay                             ; Test error code
+        bne     @L3                     ; Bail out if install had errors
 
 ; Install the IRQ vector if the driver needs it. A/X contains the error code
 ; from joy_install, so don't use it.