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