From: Christian Groessler Date: Tue, 4 Mar 2014 14:43:33 +0000 (+0100) Subject: rename libsrc/atari/tvtype.s to libsrc/atari/get_tv.s X-Git-Tag: V2.15~132^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=refs%2Fpull%2F88%2Fhead;p=cc65 rename libsrc/atari/tvtype.s to libsrc/atari/get_tv.s --- diff --git a/libsrc/atari/get_tv.s b/libsrc/atari/get_tv.s new file mode 100644 index 000000000..76661bf72 --- /dev/null +++ b/libsrc/atari/get_tv.s @@ -0,0 +1,26 @@ +; +; Christian Groessler, July 2004 +; +; unsigned char get_tv(void) +; +; returns the TV system the machine is using +; 0 - NTSC +; 1 - PAL +; + + + .include "atari.inc" + .include "get_tv.inc" + +.proc _get_tv + + ldx #TV::NTSC ; Assume NTSC + lda PAL ; use hw register, PALNTS is only supported on XL/XE ROM + and #$0e + bne @NTSC + inx ; = TV::PAL +@NTSC: txa + ldx #0 ; Expand to int + rts + +.endproc diff --git a/libsrc/atari/tvtype.s b/libsrc/atari/tvtype.s deleted file mode 100644 index 76661bf72..000000000 --- a/libsrc/atari/tvtype.s +++ /dev/null @@ -1,26 +0,0 @@ -; -; Christian Groessler, July 2004 -; -; unsigned char get_tv(void) -; -; returns the TV system the machine is using -; 0 - NTSC -; 1 - PAL -; - - - .include "atari.inc" - .include "get_tv.inc" - -.proc _get_tv - - ldx #TV::NTSC ; Assume NTSC - lda PAL ; use hw register, PALNTS is only supported on XL/XE ROM - and #$0e - bne @NTSC - inx ; = TV::PAL -@NTSC: txa - ldx #0 ; Expand to int - rts - -.endproc