|
|
| version 1.6, 2003/11/14 07:37:28 | version 1.12, 2004/01/09 07:27:15 |
|---|---|
| Line 8 enum { | Line 8 enum { |
| enum { | enum { |
| PCMODEL_VM = 0, | PCMODEL_VM = 0, |
| PCMODEL_VX = 1 | PCMODEL_VX = 1, |
| PCMODELMASK = 0x3f, | |
| PCMODEL_PC9821 = 0x40, | |
| PCMODEL_EPSON = 0x80 | |
| }; | }; |
| #define CPUMODE_8MHz 0x20 | #define CPUMODE_8MHz 0x20 |
| typedef struct { | typedef struct { |
| // エミュレート中によく参照される奴 | |
| BYTE uPD72020; | |
| BYTE DISPSYNC; | |
| BYTE RASTER; | |
| BYTE realpal; | |
| BYTE LCD_MODE; | |
| BYTE skipline; | |
| UINT16 skiplight; | |
| BYTE KEY_MODE; | |
| BYTE XSHIFT; | |
| BYTE BTN_RAPID; | |
| BYTE BTN_MODE; | |
| BYTE dipsw[3]; | |
| BYTE MOUSERAPID; | |
| BYTE calendar; | |
| BYTE usefd144; | |
| BYTE wait[6]; | |
| // リセット時とかあんまり参照されない奴 | |
| char model[8]; | |
| UINT baseclock; | UINT baseclock; |
| UINT multiple; | UINT multiple; |
| BYTE model; | |
| BYTE dipsw[3]; | |
| BYTE memsw[8]; | BYTE memsw[8]; |
| BYTE vol14[6]; | |
| BYTE wait[6]; | |
| BYTE uPD72020; | BYTE ITF_WORK; |
| BYTE KEY_MODE; | |
| BYTE SOUND_SW; | |
| BYTE realpal; | |
| UINT16 samplingrate; | |
| UINT16 delayms; | |
| BYTE MIDIRESET; | |
| BYTE DISPSYNC; | |
| BYTE EXTMEM; | BYTE EXTMEM; |
| BYTE PROTECTMEM; // qn | BYTE grcg; |
| BYTE color16; | |
| UINT32 BG_COLOR; | |
| UINT32 FG_COLOR; | |
| BYTE BTN_RAPID; | UINT16 samplingrate; |
| BYTE BTN_MODE; | UINT16 delayms; |
| BYTE SOUND_SW; | |
| BYTE snd_x; | |
| BYTE snd_x; // ver0.30 | |
| BYTE snd14opt[3]; | BYTE snd14opt[3]; |
| BYTE snd26opt; | BYTE snd26opt; |
| BYTE snd86opt; | BYTE snd86opt; |
| Line 45 typedef struct { | Line 66 typedef struct { |
| BYTE spb_vrc; // ver0.30 | BYTE spb_vrc; // ver0.30 |
| BYTE spb_vrl; // ver0.30 | BYTE spb_vrl; // ver0.30 |
| BYTE spb_x; // ver0.30 | BYTE spb_x; // ver0.30 |
| BYTE mpuopt; | |
| BYTE MOTOR; | |
| BYTE MOTORVOL; | |
| BYTE BEEP_VOL; | BYTE BEEP_VOL; |
| BYTE ITF_WORK; | BYTE vol14[6]; |
| BYTE EMM_WORK; | |
| BYTE LCD_MODE; | |
| UINT32 BG_COLOR; | |
| UINT32 FG_COLOR; | |
| BYTE MOUSERAPID; | |
| BYTE XSHIFT; | |
| BYTE skipline; | |
| UINT16 skiplight; | |
| BYTE RASTER; | |
| BYTE vol_fm; | BYTE vol_fm; |
| BYTE vol_ssg; | BYTE vol_ssg; |
| BYTE vol_adpcm; | BYTE vol_adpcm; |
| BYTE vol_pcm; | BYTE vol_pcm; |
| BYTE vol_rhythm; | BYTE vol_rhythm; |
| BYTE mpuenable; | |
| BYTE mpuopt; | |
| BYTE pc9861enable; | BYTE pc9861enable; |
| BYTE pc9861sw[3]; | BYTE pc9861sw[3]; |
| BYTE pc9861jmp[6]; | BYTE pc9861jmp[6]; |
| BYTE grcg; | BYTE MOTOR; |
| BYTE color16; | BYTE MOTORVOL; |
| BYTE calendar; | BYTE PROTECTMEM; |
| BYTE usefd144; | BYTE hdrvacc; |
| char hddfile[2][MAX_PATH]; // ver0.30 | char hddfile[2][MAX_PATH]; // ver0.30 |
| char fontfile[MAX_PATH]; | char fontfile[MAX_PATH]; |
| char biospath[MAX_PATH]; | |
| char hdrvroot[MAX_PATH]; | |
| } NP2CFG; | } NP2CFG; |
| typedef struct { | typedef struct { |
| Line 93 typedef struct { | Line 105 typedef struct { |
| UINT32 frame1000; | UINT32 frame1000; |
| UINT32 raster; | UINT32 raster; |
| UINT32 hsync; | UINT32 hsync; |
| BYTE cpumode; | UINT8 cpumode; |
| UINT8 model; | |
| } PCCORE; | } PCCORE; |
| Line 110 extern int soundrenewal; | Line 123 extern int soundrenewal; |
| extern BOOL drawframe; | extern BOOL drawframe; |
| extern UINT drawcount; | extern UINT drawcount; |
| void getbiospath(char *path, const char *fname, int maxlen); | |
| void screendisp(NEVENTITEM item); | void screendisp(NEVENTITEM item); |
| void screenvsync(NEVENTITEM item); | void screenvsync(NEVENTITEM item); |