From 44197d370885cc1ade889a73cd109b7a214daa54 Mon Sep 17 00:00:00 2001 From: cuz Date: Tue, 26 Oct 2004 19:15:23 +0000 Subject: [PATCH] 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 --- libsrc/atari/tvtype.s | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libsrc/atari/tvtype.s b/libsrc/atari/tvtype.s index fc9d77e84..84540b898 100644 --- a/libsrc/atari/tvtype.s +++ b/libsrc/atari/tvtype.s @@ -10,17 +10,17 @@ .include "atari.inc" - .export _get_tv + .include "get_tv.inc" .proc _get_tv - lda PAL ; use hw register, PALNTS is only supported on XL/XE ROM - ldx #0 + ldx #TV::NTSC ; Assume NTSC + lda PAL ; use hw register, PALNTS is only supported on XL/XE ROM and #$0e bne @NTSC - lda #1 - rts + inx ; = TV::PAL @NTSC: txa + ldx #0 ; Expand to int rts .endproc -- 2.39.5