]> git.sur5r.net Git - cc65/commitdiff
add get_tv()
authorChristian Groessler <chris@groessler.org>
Tue, 4 Mar 2014 15:02:24 +0000 (16:02 +0100)
committerChristian Groessler <chris@groessler.org>
Tue, 4 Mar 2014 15:02:24 +0000 (16:02 +0100)
libsrc/atari5200/get_tv.s [new file with mode: 0644]

diff --git a/libsrc/atari5200/get_tv.s b/libsrc/atari5200/get_tv.s
new file mode 100644 (file)
index 0000000..99cac3c
--- /dev/null
@@ -0,0 +1,20 @@
+;
+; Christian Groessler, 2014
+;
+; unsigned char get_tv (void);
+; /* Return the video mode the machine is using */
+;
+
+        .include        "get_tv.inc"
+
+
+;--------------------------------------------------------------------------
+; _get_tv
+
+.proc   _get_tv
+
+        lda     #<TV::NTSC
+        ldx     #>TV::NTSC
+        rts
+
+.endproc