]> git.sur5r.net Git - cc65/commitdiff
Move store out of region with interrupts disabled to improve interrupt
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 30 Jul 2000 09:30:58 +0000 (09:30 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 30 Jul 2000 09:30:58 +0000 (09:30 +0000)
latency.

git-svn-id: svn://svn.cc65.org/cc65/trunk@236 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/atari/clock.s

index 174751c7acff093fa734b79174aad1f2013f3b11..6aa8836a68310dd07438a167867a7ba5a67e45f0 100644 (file)
                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