1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 04:30:10 +00:00

Disable interrupts while modifying the signal table

git-svn-id: svn://svn.cc65.org/cc65/trunk@3324 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2004-12-10 11:50:54 +00:00
parent 48a7d56619
commit 95f66b8ca9

View 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