1 |
|
/* |
2 |
|
* main.h - General definitions |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-1999 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2000 Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
38 |
|
uint16 sr; |
39 |
|
}; |
40 |
|
|
41 |
< |
// Functions |
41 |
> |
// General functions |
42 |
> |
extern bool InitAll(void); |
43 |
> |
extern void ExitAll(void); |
44 |
> |
|
45 |
> |
// Platform-specific functions |
46 |
|
extern void FlushCodeCache(void *start, uint32 size); // Code was patched, flush caches if neccessary |
47 |
|
extern void QuitEmulator(void); // Quit emulator |
48 |
|
extern void ErrorAlert(const char *text); // Display error alert |
51 |
|
|
52 |
|
// Interrupt flags |
53 |
|
enum { |
54 |
< |
INTFLAG_60HZ = 1, // 60Hz VBL |
55 |
< |
INTFLAG_SERIAL = 2, // Serial driver |
56 |
< |
INTFLAG_ETHER = 4, // Ethernet driver |
57 |
< |
INTFLAG_AUDIO = 8, // Audio block read |
58 |
< |
INTFLAG_TIMER = 16 // Time Manager |
54 |
> |
INTFLAG_60HZ = 1, // 60.15Hz VBL |
55 |
> |
INTFLAG_1HZ = 2, // ~1Hz interrupt |
56 |
> |
INTFLAG_SERIAL = 4, // Serial driver |
57 |
> |
INTFLAG_ETHER = 8, // Ethernet driver |
58 |
> |
INTFLAG_AUDIO = 16, // Audio block read |
59 |
> |
INTFLAG_TIMER = 32, // Time Manager |
60 |
> |
INTFLAG_NMI = 64 // NMI |
61 |
|
}; |
62 |
|
|
63 |
|
extern uint32 InterruptFlags; // Currently pending interrupts |