mirror of
https://github.com/cc65/cc65.git
synced 2024-11-02 18:06:48 +00:00
2e1db7ae38
git-svn-id: svn://svn.cc65.org/cc65/trunk@2420 b7a2c559-68d2-44c3-8de9-860c34a00d81
49 lines
1.0 KiB
C
49 lines
1.0 KiB
C
/*
|
|
GEOS system functions
|
|
|
|
by Maciej 'YTM/Elysium' Witkowiak
|
|
*/
|
|
|
|
#ifndef _GSYS_H
|
|
#define _GSYS_H
|
|
|
|
void FirstInit(void);
|
|
void InitForIO(void);
|
|
void DoneWithIO(void);
|
|
void MainLoop(void);
|
|
void EnterDeskTop(void);
|
|
void ToBASIC(void);
|
|
void Panic(void);
|
|
|
|
void __fastcall__ CallRoutine(void *myRoutine);
|
|
|
|
unsigned GetSerialNumber(void);
|
|
char GetRandom(void);
|
|
|
|
void __fastcall__ SetDevice(char newdev);
|
|
|
|
char get_ostype(void);
|
|
|
|
/* possible return values of get_ostype, machine and version flags will
|
|
be combined with OR */
|
|
/* machine flags */
|
|
#define GEOS64 0x00
|
|
#define GEOS128 0x80
|
|
/* version flags */
|
|
#define GEOS_V10 0x10
|
|
#define GEOS_V12 0x12 /* ??? not sure */
|
|
#define GEOS_V20 0x20
|
|
#define WHEELS 0x40 /* only Wheels? */
|
|
|
|
char get_tv(void);
|
|
|
|
/* possible return values of get_tv, these flags will be combined
|
|
note that columns state can be changed during runtime and get_tv
|
|
always returns the current state */
|
|
#define COLUMNS40 0x00
|
|
#define COLUMNS80 0x01
|
|
#define TV_PAL 0x00
|
|
#define TV_NTSC 0x80
|
|
|
|
#endif
|