From 2e3b545bdb34b0745fd30597f3deb1e750c43ae7 Mon Sep 17 00:00:00 2001 From: cuz Date: Sun, 30 Jul 2000 09:30:58 +0000 Subject: [PATCH] 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 --- libsrc/atari/clock.s | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libsrc/atari/clock.s b/libsrc/atari/clock.s index 174751c7a..6aa8836a6 100644 --- a/libsrc/atari/clock.s +++ b/libsrc/atari/clock.s @@ -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 -- 2.39.5