|
|
| version 1.1, 2004/08/01 05:31:29 | version 1.19, 2005/02/04 06:42:07 |
|---|---|
| Line 1 | Line 1 |
| // #include "z80core.h" | |
| // #include "x1_io.h" | |
| typedef struct { | typedef struct { |
| UINT8 KEY_MODE; | |
| UINT8 SOUND_SW; | |
| UINT8 SKIP_LINE; | |
| UINT8 NOWAIT; | |
| UINT8 DRAW_SKIP; | |
| UINT8 ROM_TYPE; | UINT8 ROM_TYPE; |
| UINT8 CPU8MHz; | |
| UINT8 DIP_SW; | UINT8 DIP_SW; |
| UINT8 fddequip; | |
| UINT8 DISPSYNC; | |
| UINT8 RASTER; | |
| UINT8 skipline; | |
| UINT16 skiplight; | |
| #if !defined(DISABLE_SOUND) | |
| UINT16 samplingrate; | UINT16 samplingrate; |
| UINT16 delayms; | UINT16 delayms; |
| #if defined(SUPPORT_TURBOZ) || defined(SUPPORT_OPM) | |
| UINT8 SOUND_SW; | |
| UINT8 vol_fm; | |
| #endif | |
| UINT8 vol_ssg; | |
| UINT8 MOTOR; | UINT8 MOTOR; |
| UINT8 MOTORVOL; | UINT8 MOTORVOL; |
| #endif | |
| UINT8 MOUSE_SW; | |
| UINT8 KEY_MODE; | |
| UINT8 BTN_RAPID; | UINT8 BTN_RAPID; |
| UINT8 BTN_MODE; | UINT8 BTN_MODE; |
| UINT8 LINEDEPTH; | |
| UINT8 BLKLIGHT; | |
| UINT8 TEXTMODE; | |
| UINT8 TEXT400L; | |
| UINT8 LINETEXT; | |
| UINT8 SOUNDPLY; | |
| UINT8 DISPSYNC; | |
| UINT8 MOUSE_SW; | |
| } XMILCFG; | } XMILCFG; |
| typedef struct { | typedef struct { |
| UINT16 HSYNC_CLK; | #if !defined(FIX_Z80A) |
| UINT32 baseclock; | |
| UINT multiple; | |
| UINT32 realclock; | |
| #endif | |
| UINT8 ROM_TYPE; | UINT8 ROM_TYPE; |
| UINT8 ROM_SW; | |
| UINT8 DIP_SW; | UINT8 DIP_SW; |
| UINT8 SOUND_SW; | UINT8 SOUND_SW; |
| } PCCORE; | } PCCORE; |
| typedef struct { | |
| #define GRAM_SIZE 0x10000 | // SINT32 dispclock; |
| #define GRAM_BANK0 0x00000 | SINT32 syncclock; |
| #define GRAM_BANK1 0x10000 | SINT32 framebaseclock; // by 4MHz |
| UINT8 vsync; | |
| #define GRAM_BANK0L 0x00000 | UINT8 drawframe; |
| #define GRAM_BANK0H 0x08000 | UINT8 soundrenewal; |
| #define GRAM_BANK1L 0x10000 | } CORESTAT; |
| #define GRAM_BANK1H 0x18000 | |
| enum { | |
| #define GRAM_HALFSTEP 0x08000 | DIPSW_RESOLUTE = 0x01, |
| DIPSW_BOOTMEDIA = 0x04 | |
| #define TEXT_ANK 0x0000 | }; |
| #define TEXT_ATR 0x0800 | |
| #define TEXT_KNJ 0x1000 | |
| #define PLANE_B 8 | |
| #define PLANE_R 16 | |
| #define PLANE_G 24 | |
| #define DIP_RESOLUTE 1 | |
| #define DIP_BOOTMEDIA 4 | |
| #ifdef __cplusplus | #ifdef __cplusplus |
| Line 72 extern "C" { | Line 59 extern "C" { |
| extern const OEMCHAR xmilversion[]; | extern const OEMCHAR xmilversion[]; |
| extern XMILCFG xmilcfg; | extern XMILCFG xmilcfg; |
| extern PCCORE pccore; | extern PCCORE pccore; |
| extern BYTE *RAM0r; | extern CORESTAT corestat; |
| extern BYTE *RAM0w; | |
| extern BYTE lastmem; | #if !defined(MAINFRAMES_OLD) |
| extern DWORD h_cntbase; | void neitem_mainframes(UINT id); |
| #else | |
| extern BYTE mMAIN[0x10000]; | void neitem_disp(UINT id); |
| extern BYTE mBIOS[0x8000]; | void neitem_vsync(UINT id); |
| extern BYTE mBANK[16][0x8000]; | #endif |
| extern BYTE GRP_RAM[0x20000]; | |
| extern BYTE TXT_RAM[0x01800]; | |
| extern BRESULT soundrenewal; | |
| #define h_cnt Z80_ICOUNT | |
| extern WORD v_cnt; | |
| // BYTE reset_x1(BYTE ROM_TYPE, BYTE SOUND_SW, BYTE DIP_SW); | |
| void x1r_exec(void); | |
| void pccore_initialize(void); | void pccore_initialize(void); |
| void pccore_reset(void); | void pccore_reset(void); |
| void pccore_deinitialize(void); | void pccore_deinitialize(void); |
| void pccore_exec(BRESULT draw); | |
| #ifdef __cplusplus | #ifdef __cplusplus |
| } | } |