mirror of
https://github.com/cc65/cc65.git
synced 2025-02-26 23:30:03 +00:00
get_ostype() was split into get_ostype() and get_tv() a long time
ago... git-svn-id: svn://svn.cc65.org/cc65/trunk@3152 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
449e602e12
commit
38fe19a1a3
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* testprogram for get_ostype() function
|
* testprogram for get_ostype() and get_tv() functions
|
||||||
*
|
*
|
||||||
* 17-Jul-2000, cpg@aladdin.de
|
* 09-Jul-2004, cpg@aladdin.de
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -9,17 +9,18 @@
|
|||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
unsigned int t;
|
unsigned int t, v;
|
||||||
unsigned char palntsc;
|
unsigned char palntsc;
|
||||||
unsigned char *rev;
|
unsigned char *rev;
|
||||||
unsigned char minor;
|
unsigned char minor;
|
||||||
unsigned char c;
|
unsigned char c;
|
||||||
|
|
||||||
t = get_ostype(); /* get computer type */
|
t = get_ostype(); /* get computer type */
|
||||||
|
v = get_tv(); /* get tv system */
|
||||||
|
|
||||||
|
palntsc = (v == AT_PAL);
|
||||||
|
|
||||||
palntsc = (t & AT_OS_PALNTSC) >> 3;
|
|
||||||
minor = (t & AT_OS_TYPE_MINOR) >> 5;
|
minor = (t & AT_OS_TYPE_MINOR) >> 5;
|
||||||
if (palntsc != AT_OS_PAL) palntsc = 0; /* 1 - PAL; 0 - NTSC */
|
|
||||||
switch(t & AT_OS_TYPE_MAIN) {
|
switch(t & AT_OS_TYPE_MAIN) {
|
||||||
case AT_OS_UNKNOWN:
|
case AT_OS_UNKNOWN:
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user