]> git.sur5r.net Git - cc65/commitdiff
Save two bytes by a small code change.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 4 Jun 2010 10:15:44 +0000 (10:15 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 4 Jun 2010 10:15:44 +0000 (10:15 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4708 b7a2c559-68d2-44c3-8de9-860c34a00d81

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