forked from libretro/xmil-libretro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pccore.h
86 lines (69 loc) · 1.32 KB
/
pccore.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#include "nevent.h"
typedef struct {
UINT8 ROM_TYPE;
UINT8 DIP_SW;
UINT8 fddequip;
UINT8 DISPSYNC;
UINT8 RASTER;
UINT8 skipline;
UINT16 skiplight;
#if !defined(DISABLE_SOUND)
UINT16 samplingrate;
UINT16 delayms;
#if defined(SUPPORT_TURBOZ) || defined(SUPPORT_OPM)
UINT8 vol_fm;
#endif
UINT8 vol_ssg;
UINT8 MOTOR;
UINT8 MOTORVOL;
#endif
#if defined(SUPPORT_TURBOZ) || defined(SUPPORT_OPM)
UINT8 SOUND_SW;
#endif
UINT8 MOUSE_SW;
UINT8 KEY_MODE;
UINT8 BTN_RAPID;
UINT8 BTN_MODE;
UINT32 X1_CPU_CLOCK;
} XMILCFG;
typedef struct {
#if !defined(FIX_Z80A)
UINT32 baseclock;
UINT multiple;
UINT32 realclock;
#endif
UINT8 ROM_TYPE;
UINT8 DIP_SW;
UINT8 SOUND_SW;
} PCCORE;
typedef struct {
SINT32 syncclock;
SINT32 framebaseclock; /* by 4MHz */
UINT8 vsync;
UINT8 drawframe;
UINT8 soundrenewal;
} CORESTAT;
enum {
DIPSW_RESOLUTE = 0x01,
DIPSW_BOOTMEDIA = 0x04
};
#ifdef __cplusplus
extern "C" {
#endif
extern const OEMCHAR xmilversion[];
extern XMILCFG xmilcfg;
extern PCCORE pccore;
extern CORESTAT corestat;
#if !defined(MAINFRAMES_OLD)
void neitem_mainframes(NEVENTID id);
#else
void neitem_disp(NEVENTID id);
void neitem_vsync(NEVENTID id);
#endif
void pccore_initialize(void);
void pccore_reset(void);
void pccore_deinitialize(void);
void pccore_exec(BOOL draw);
#ifdef __cplusplus
}
#endif