Don't install the IRQ vector if mouse_install returns an error
git-svn-id: svn://svn.cc65.org/cc65/trunk@3625 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -91,9 +91,11 @@ _mouse_install:
|
|||||||
ldy tmp1
|
ldy tmp1
|
||||||
bpl @L2
|
bpl @L2
|
||||||
|
|
||||||
; Call driver install routine
|
; Call driver install routine and check for errors
|
||||||
|
|
||||||
jsr mouse_install
|
jsr mouse_install
|
||||||
|
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
|
; Install the IRQ vector if the driver needs it. A/X contains the error code
|
||||||
; from mouse_install, so don't use it.
|
; from mouse_install, so don't use it.
|
||||||
|
|||||||
Reference in New Issue
Block a user