mirror of
https://github.com/cc65/cc65.git
synced 2025-01-03 16:33:19 +00:00
Move store out of region with interrupts disabled to improve interrupt
latency. git-svn-id: svn://svn.cc65.org/cc65/trunk@236 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
dcb557517e
commit
2e3b545bdb
@ -19,11 +19,11 @@
|
||||
sta sreg+1
|
||||
php ; Save current I flag value
|
||||
sei ; Disable interrupts
|
||||
lda RTCLOK+2
|
||||
sta sreg
|
||||
lda RTCLOK ; Read clock
|
||||
ldx RTCLOK+1
|
||||
plp ; Restore old I bit
|
||||
ldy RTCLOK+2
|
||||
plp ; Restore old I bit
|
||||
sty sreg
|
||||
rts
|
||||
|
||||
.endproc
|
||||
|
Loading…
Reference in New Issue
Block a user