]> git.sur5r.net Git - cc65/blobdiff - libsrc/atari/clock.s
The spans do now contain the size of a span, no longer the end offset.
[cc65] / libsrc / atari / clock.s
index c7435b77b3d3f9ad5400e663625ab5882e0a0db5..e294d4deddae918a326f403dc219ea5ecf945800 100644 (file)
 
 .proc  __clocks_per_sec
 
+        ldx     #$00            ; Clear high byte of return value
        lda     PAL             ; use hw register, PALNTS is only supported on XL/XE ROM
        and     #$0e
        bne     @NTSC
-       tax
        lda     #50
        rts
-@NTSC: ldx     #0
-       lda     #60
+@NTSC:         lda     #60
        rts
 
 .endproc