]> git.sur5r.net Git - cc65/blob - include/geos/gsys.h
added Wheels to ostypes
[cc65] / include / geos / gsys.h
1 /*
2   GEOS system functions
3
4   ported to small C on 27.10.1999
5   by Maciej 'YTM/Elysium' Witkowiak
6 */
7
8 #ifndef _GSYS_H
9 #define _GSYS_H
10
11 void __fastcall__ FirstInit(void);
12 void __fastcall__ InitForIO(void);
13 void __fastcall__ DoneWithIO(void);
14 void __fastcall__ MainLoop(void);
15 void __fastcall__ EnterDeskTop(void);
16 void __fastcall__ ToBASIC(void);
17 void __fastcall__ Panic(void);
18
19 void __fastcall__ CallRoutine(void *myRoutine);
20
21 unsigned __fastcall__ GetSerialNumber(void);
22 char __fastcall__ GetRandom(void);
23
24 void __fastcall__ SetDevice(char newdev);
25
26 char __fastcall__ get_ostype(void);
27
28 /* possible return values of get_ostype, machine and version flags will
29    be combined with OR */
30   /* machine flags */
31 #define GEOS64          0x00
32 #define GEOS128         0x80
33   /* version flags */
34 #define GEOS_V10        0x10
35 #define GEOS_V12        0x12    /* ??? not sure */
36 #define GEOS_V20        0x20
37 #define WHEELS          0x40    /* only Wheels? */
38
39 char __fastcall__ get_tv(void);
40
41 /* possible return values of get_tv, these flags will be combined
42    note that columns state can be changed during runtime and get_tv
43    always returns the current state */
44 #define COLUMNS40       0x00
45 #define COLUMNS80       0x01
46 #define TV_PAL          0x00
47 #define TV_NTSC         0x80
48
49 #endif