mirror of
https://github.com/cc65/cc65.git
synced 2024-12-26 08:32:00 +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:
parent
23901280c9
commit
ba0562c9f0
@ -30,14 +30,13 @@
|
||||
|
||||
.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
|
||||
|
Loading…
Reference in New Issue
Block a user