]> git.sur5r.net Git - cc65/blobdiff - libsrc/pce/clock.s
more cleanup and fixing
[cc65] / libsrc / pce / clock.s
index 5f360916c180999ecdb253aa60b5be894f688689..4271fdc61ecce448e6e20a92025119e9ea4baaa8 100644 (file)
@@ -9,10 +9,10 @@
 
 .proc   _clock
 
-        ldy #0                  ; Byte 3 is always zero
-        sty sreg+1
-        sty sreg
-
+        lda _tickcount+3
+        sta sreg+1
+        lda _tickcount+2
+        sta sreg
         ldx _tickcount+1
         lda _tickcount
         rts