From: cuz Date: Fri, 10 Dec 2004 11:50:54 +0000 (+0000) Subject: Disable interrupts while modifying the signal table X-Git-Tag: V2.12.0~512 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=95f66b8ca909df0e0b1464b1450a891ba861812d;p=cc65 Disable interrupts while modifying the signal table git-svn-id: svn://svn.cc65.org/cc65/trunk@3324 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/common/signal.s b/libsrc/common/signal.s index e77674255..5d2b7ebc1 100644 --- a/libsrc/common/signal.s +++ b/libsrc/common/signal.s @@ -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