From 4413c9dc6e6ff154e0b9318a45f4648ed6a7011b Mon Sep 17 00:00:00 2001 From: cpg Date: Mon, 4 Dec 2000 20:17:11 +0000 Subject: [PATCH] changed get_ostype defines for new return parameters; added get_tv function prototype git-svn-id: svn://svn.cc65.org/cc65/trunk@544 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- include/atari.h | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/include/atari.h b/include/atari.h index 2eb745ec7..64e4b898a 100644 --- a/include/atari.h +++ b/include/atari.h @@ -127,26 +127,27 @@ extern void __fastcall__ scroll (signed char numlines); /* numlines < 0 scrolls down */ /* misc. functions */ -extern void save_vecs(void); /* save system vectors */ -extern void rest_vecs(void); /* restore system vectors */ -extern unsigned int get_ostype(void); /* get ROM version */ +extern void save_vecs(void); /* save system vectors */ +extern void rest_vecs(void); /* restore system vectors */ +extern unsigned char get_ostype(void); /* get ROM version */ +extern unsigned char get_tv(void); /* get TV system */ /* get_ostype return value defines (for explanation, see ostype.s) */ /* masks */ #define AT_OS_TYPE_MAIN 7 -#define AT_OS_PALNTSC (3 << 3) -#define AT_OS_TYPE_MINOR (7 << 5) +#define AT_OS_TYPE_MINOR (7 << 3) /* AT_OS_TYPE_MAIN values */ #define AT_OS_UNKNOWN 0 #define AT_OS_400800 1 #define AT_OS_1200XL 2 #define AT_OS_XLXE 3 -/* AT_OS_PALNTSC values */ -#define AT_OS_PAL 1 -#define AT_OS_NTSC 2 /* AS_OS_TYPE_MINOR values */ -#define AT_OS_400800_A 1 -#define AT_OS_400800_B 2 +/* for 400/800 remember this are the ROM versions */ +/* to check whether the hw is PAL or NTSC, use get_tv() */ +#define AT_OS_400800PAL_A 1 +#define AT_OS_400800PAL_B 2 +#define AT_OS_400800NTSC_A 1 +#define AT_OS_400800NTSC_B 2 #define AT_OS_1200_10 1 #define AT_OS_1200_11 2 #define AT_OS_XLXE_1 1 @@ -154,6 +155,10 @@ extern unsigned int get_ostype(void); /* get ROM version */ #define AT_OS_XLXE_3 3 #define AT_OS_XLXE_4 4 +/* get_tv return values */ +#define AT_NTSC 0 +#define AT_PAL 1 + /* Define hardware */ #include <_gtia.h> #define GTIA_READ (*(struct __gtia_read*)0xD000) -- 2.39.5