From: cuz Date: Mon, 5 Sep 2005 20:24:37 +0000 (+0000) Subject: Don't install the IRQ vector if joy_install returns an error X-Git-Tag: V2.12.0~222 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b17be7f2e890ab111ea1c12cec76200e3d94a309;p=cc65 Don't install the IRQ vector if joy_install returns an error git-svn-id: svn://svn.cc65.org/cc65/trunk@3624 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/joystick/joy-kernel.s b/libsrc/joystick/joy-kernel.s index 0bb49463f..7961e1c2a 100644 --- a/libsrc/joystick/joy-kernel.s +++ b/libsrc/joystick/joy-kernel.s @@ -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.