mirror of
https://github.com/libretro/xmil-libretro.git
synced 2025-02-23 09:41:38 +00:00
84 lines
1.2 KiB
C
84 lines
1.2 KiB
C
|
|
typedef struct {
|
|
UINT8 ROM_TYPE;
|
|
UINT8 DIP_SW;
|
|
UINT8 fddequip;
|
|
|
|
UINT8 DISPSYNC;
|
|
UINT8 RASTER;
|
|
UINT8 skipline;
|
|
UINT16 skiplight;
|
|
|
|
UINT16 samplingrate;
|
|
UINT16 delayms;
|
|
UINT8 SOUND_SW;
|
|
UINT8 MOTOR;
|
|
UINT8 MOTORVOL;
|
|
|
|
UINT8 MOUSE_SW;
|
|
UINT8 KEY_MODE;
|
|
UINT8 BTN_RAPID;
|
|
UINT8 BTN_MODE;
|
|
} XMILCFG;
|
|
|
|
typedef struct {
|
|
UINT32 baseclock;
|
|
UINT multiple;
|
|
UINT32 realclock;
|
|
|
|
UINT8 ROM_TYPE;
|
|
UINT8 DIP_SW;
|
|
UINT8 SOUND_SW;
|
|
} PCCORE;
|
|
|
|
typedef struct {
|
|
UINT tl;
|
|
UINT vl;
|
|
UINT8 vsync;
|
|
UINT8 drawframe;
|
|
UINT8 soundrenewal;
|
|
} CORESTAT;
|
|
|
|
enum {
|
|
RASTER_CLOCK = 250
|
|
};
|
|
|
|
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;
|
|
extern BYTE *RAM0r;
|
|
extern BYTE *RAM0w;
|
|
|
|
extern BYTE mMAIN[0x10000];
|
|
extern BYTE mBIOS[0x8000];
|
|
#if defined(SUPPORT_BANKMEM)
|
|
extern BYTE mBANK[16][0x8000];
|
|
#endif
|
|
|
|
|
|
UINT pccore_getraster(UINT *h);
|
|
void nvitem_vdisp(UINT id);
|
|
void nvitem_vsync(UINT id);
|
|
|
|
void pccore_initialize(void);
|
|
void pccore_reset(void);
|
|
void pccore_deinitialize(void);
|
|
void pccore_exec(BRESULT draw);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|