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:
@@ -38,6 +38,7 @@ _signal:
|
|||||||
asl a ; Prepare for word access
|
asl a ; Prepare for word access
|
||||||
tax
|
tax
|
||||||
|
|
||||||
|
sei ; Disable interrupts in case of async signals
|
||||||
lda sigtable,x
|
lda sigtable,x
|
||||||
pha
|
pha
|
||||||
lda ptr1
|
lda ptr1
|
||||||
@@ -46,6 +47,7 @@ _signal:
|
|||||||
pha
|
pha
|
||||||
lda ptr1+1
|
lda ptr1+1
|
||||||
sta sigtable+1,x
|
sta sigtable+1,x
|
||||||
|
cli ; Reenable interrupts
|
||||||
|
|
||||||
; Get the old value from the stack and return it
|
; Get the old value from the stack and return it
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user