1
0
mirror of https://github.com/cc65/cc65.git synced 2025-02-26 23:30:03 +00:00

Save two bytes by a small code change.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4708 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2010-06-04 10:15:44 +00:00
parent 23901280c9
commit ba0562c9f0

View File

@ -30,14 +30,13 @@
.proc __clocks_per_sec .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 lda PAL ; use hw register, PALNTS is only supported on XL/XE ROM
and #$0e and #$0e
bne @NTSC bne @NTSC
tax
lda #50 lda #50
rts rts
@NTSC: ldx #0 @NTSC: lda #60
lda #60
rts rts
.endproc .endproc