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
1 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue