mirror of
https://github.com/cc65/cc65.git
synced 2025-08-08 22:25:28 +00:00
Don't use php to save old IRQ state
git-svn-id: svn://svn.cc65.org/cc65/trunk@869 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -153,7 +153,6 @@ _mouse_show:
|
||||
_mouse_box:
|
||||
ldy #0 ; Stack offset
|
||||
|
||||
php
|
||||
sei ; Disable interrupts
|
||||
|
||||
sta YMax
|
||||
@@ -179,7 +178,7 @@ _mouse_box:
|
||||
lda (sp),y
|
||||
sta XMin+1 ; minx
|
||||
|
||||
plp ; Enable interrupts
|
||||
cli ; Enable interrupts
|
||||
|
||||
jmp addysp1 ; Drop params, return
|
||||
|
||||
@@ -195,7 +194,6 @@ _mouse_pos:
|
||||
|
||||
ldy #0 ; Structure offset
|
||||
|
||||
php
|
||||
sei ; Disable interrupts
|
||||
|
||||
lda XPos ; Transfer the position
|
||||
@@ -210,7 +208,7 @@ _mouse_pos:
|
||||
iny
|
||||
sta (ptr1),y
|
||||
|
||||
plp ; Restore initial interrupt state
|
||||
cli ; Restore initial interrupt state
|
||||
|
||||
rts ; Done
|
||||
|
||||
|
Reference in New Issue
Block a user