2 * testprogram for get_ostype() and get_tv() functions
4 * 09-Jul-2004, cpg@aladdin.de
13 unsigned char palntsc;
18 t = get_ostype(); /* get computer type */
19 v = get_tv(); /* get tv system */
21 palntsc = (v == AT_PAL);
23 minor = (t & AT_OS_TYPE_MINOR) >> 5;
24 switch(t & AT_OS_TYPE_MAIN) {
27 printf("unknown system type !!\n");
30 if (minor == 1) rev = "A";
32 printf("it's a 400/800, %s, Rev. %s\n",palntsc ? "PAL" : "NTSC",rev);
35 if (minor == 1) rev = "10";
37 printf("it's a 1200XL, %s, Rev. %s\n",palntsc ? "PAL" : "NTSC",rev);
40 printf("is'a a XL/XE, %s, Rev. %d\n",palntsc ? "PAL" : "NTSC",minor);
43 printf("hit <RETURN> to continure...\n");