Use get_tv.inc. Fix high byte of returned value.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3261 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
b5db6e9e7b
commit
44197d3708
1 changed files with 5 additions and 5 deletions
|
@ -10,17 +10,17 @@
|
||||||
|
|
||||||
|
|
||||||
.include "atari.inc"
|
.include "atari.inc"
|
||||||
.export _get_tv
|
.include "get_tv.inc"
|
||||||
|
|
||||||
.proc _get_tv
|
.proc _get_tv
|
||||||
|
|
||||||
|
ldx #TV::NTSC ; Assume NTSC
|
||||||
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
|
||||||
ldx #0
|
|
||||||
and #$0e
|
and #$0e
|
||||||
bne @NTSC
|
bne @NTSC
|
||||||
lda #1
|
inx ; = TV::PAL
|
||||||
rts
|
|
||||||
@NTSC: txa
|
@NTSC: txa
|
||||||
|
ldx #0 ; Expand to int
|
||||||
rts
|
rts
|
||||||
|
|
||||||
.endproc
|
.endproc
|
||||||
|
|
Loading…
Add table
Reference in a new issue