From 56d98bbb934bfdd6a5981f301118e1c22b27aae9 Mon Sep 17 00:00:00 2001 From: cpg Date: Tue, 6 Nov 2001 01:22:54 +0000 Subject: [PATCH] return the hardware tv system, not the ROMs one git-svn-id: svn://svn.cc65.org/cc65/trunk@1099 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/atari/tvtype.s | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/libsrc/atari/tvtype.s b/libsrc/atari/tvtype.s index ff09d8573..96d672247 100644 --- a/libsrc/atari/tvtype.s +++ b/libsrc/atari/tvtype.s @@ -1,9 +1,11 @@ ; -; Christian Groessler, December 2000 +; Christian Groessler, November 2001 ; ; unsigned char get_tv(void) ; ; returns the TV system the machine is using +; 0 - NTSC +; 1 - PAL ; @@ -12,8 +14,13 @@ .proc _get_tv - lda PALNTS + lda PAL ; use hw register, PALNTS is only supported on XL/XE ROM ldx #0 + and #$0e + bne @NTSC + lda #1 + rts +@NTSC: txa rts .endproc -- 2.39.5