From 95f66b8ca909df0e0b1464b1450a891ba861812d Mon Sep 17 00:00:00 2001 From: cuz Date: Fri, 10 Dec 2004 11:50:54 +0000 Subject: [PATCH] Disable interrupts while modifying the signal table git-svn-id: svn://svn.cc65.org/cc65/trunk@3324 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/common/signal.s | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.5