1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-01 13:41:34 +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:
cuz 2000-07-30 09:30:58 +00:00
parent dcb557517e
commit 2e3b545bdb

View File

@ -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