OSDN Git Service

updated copyleft and need to test and fix newer version of open watcom
[proj16/16.git] / src / lib / wcpu / wcpu.c
1 /* Project 16 Source Code~
2  * Copyright (C) 2012-2022 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover
3  *
4  * This file is part of Project 16.
5  *
6  * Project 16 is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * Project 16 is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program.  If not, see <http://www.gnu.org/licenses/>, or
18  * write to the Free Software Foundation, Inc., 51 Franklin Street,
19  * Fifth Floor, Boston, MA 02110-1301 USA.
20  *
21  */
22 /* tab size = 8 */
23
24 #include "src/lib/wcpu/16_wcpu.h"
25
26 void main(int argc, char **argv)
27 {
28         /*const char *cpus, *fpus;
29         unsigned char cput, fput;
30
31         cput = WCPU_detectcpu();
32         fput = WCPU_detectfpu();
33         switch(cput)
34         {
35                 case 0: cpus = "8086/8088 or 186/88"; break;
36                 case 1: cpus = "286"; break;
37                 case 2: cpus = "386 or newer"; break;
38                 default: cpus = "internal error"; break;
39         }
40
41         switch(fput)
42         {
43                 case 0: fpus = "none"; break;
44                 case 1: fpus = "8087"; break;
45                 default: fpus = "internal error"; break;
46         }
47         printf("detected CPU type: %s\n", cpus);
48         printf("detected FPU type: %s\n",       fpus);*/
49         WCPU_cpufpumesg();
50         //if (cpu_flags & CPU_FLAG_FPU) printf(" - With FPU\n");
51 }