Apple2: Don't forcefully re-enable IRQ
Avoid enabling IRQ after disabling them in driver code, remember previous state instead (in case user had them disabled already).
This commit is contained in:
committed by
Oliver Schmidt
parent
162bc6b305
commit
852b622c43
@@ -29,7 +29,8 @@ iigs: bit RDVBLBAR
|
||||
rts
|
||||
|
||||
; Apple IIc TechNote #9, Detecting VBL
|
||||
iic: sei
|
||||
iic: php
|
||||
sei
|
||||
sta IOUDISOFF
|
||||
lda RDVBLMSK
|
||||
bit ENVBL
|
||||
@@ -40,7 +41,7 @@ iic: sei
|
||||
bcs :+ ; VBL interrupts were already enabled
|
||||
bit DISVBL
|
||||
: sta IOUDISON ; IIc Tech Ref Man: The firmware normally leaves IOUDIS on.
|
||||
cli
|
||||
plp
|
||||
rts
|
||||
|
||||
.endif ; __APPLE2ENH__
|
||||
|
||||
Reference in New Issue
Block a user