From 4406307c2fee0e3e2369d03e38bf8c118c2393ac Mon Sep 17 00:00:00 2001 From: Christian Groessler Date: Thu, 24 Apr 2014 00:27:06 +0200 Subject: [PATCH] Make the hooking and unhooking of the interrupt interrupt safe. --- libsrc/c128/mou/c128-joy.s | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libsrc/c128/mou/c128-joy.s b/libsrc/c128/mou/c128-joy.s index fb087c8fc..339fdc836 100644 --- a/libsrc/c128/mou/c128-joy.s +++ b/libsrc/c128/mou/c128-joy.s @@ -160,7 +160,6 @@ INSTALL: lda YPos ldx YPos+1 jsr CMOVEY - cli ; Initialize our IRQ magic @@ -190,6 +189,7 @@ INSTALL: iny lda #>(chainIRQ-1) sta (ptr3),y + cli ; Done, return zero (= MOUSE_ERR_OK) @@ -202,11 +202,12 @@ INSTALL: ; No return code required (the driver is removed from memory on return). UNINSTALL: - lda chainIRQ+1 + sei sta IRQInd+1 lda chainIRQ+2 sta IRQInd+2 + cli jsr HIDE ; Hide cursor on exit lda INIT_save -- 2.39.5