]> git.sur5r.net Git - cc65/commitdiff
Disable interrupts while modifying the signal table
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 10 Dec 2004 11:50:54 +0000 (11:50 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 10 Dec 2004 11:50:54 +0000 (11:50 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3324 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/common/signal.s

index e77674255921441b0fb0be15b518d1572d794230..5d2b7ebc1bcf15be8687bf8332b4e884f8fd2e7b 100644 (file)
@@ -38,6 +38,7 @@ _signal:
         asl     a               ; Prepare for word access
         tax
 
+        sei                     ; Disable interrupts in case of async signals
         lda     sigtable,x
         pha
         lda     ptr1
@@ -46,6 +47,7 @@ _signal:
         pha
         lda     ptr1+1
         sta     sigtable+1,x
+        cli                     ; Reenable interrupts
 
 ; Get the old value from the stack and return it