|
|
| version 1.11, 2004/08/05 16:47:26 | version 1.12, 2004/08/07 07:19:56 |
|---|---|
| Line 7 | Line 7 |
| #include "z80core.h" | #include "z80core.h" |
| #include "pccore.h" | #include "pccore.h" |
| #include "iocore.h" | #include "iocore.h" |
| #include "draw.h" | #include "makescrn.h" |
| #include "sound.h" | #include "sound.h" |
| #include "sndctrl.h" | #include "sndctrl.h" |
| #include "menu.h" | |
| #include "font.h" | #include "font.h" |
| #include "xmilver.h" | #include "xmilver.h" |
| #include "fddfile.h" | #include "fddfile.h" |
| Line 22 | Line 21 |
| const OEMCHAR xmilversion[] = OEMTEXT(XMILVER_CORE); | const OEMCHAR xmilversion[] = OEMTEXT(XMILVER_CORE); |
| XMILCFG xmilcfg = { 0, 0, 1, 0, 1, 2, 0, 1, | XMILCFG xmilcfg = { 0, 0, 1, |
| 2, 0, 1, | |
| 22050, 1000, 0, 80, | 22050, 1000, 0, 80, |
| 0, 0, | 0, 0, |
| 0, 0, | 0, 0, |
| Line 30 const OEMCHAR xmilversion[] = OEMTEXT(XM | Line 30 const OEMCHAR xmilversion[] = OEMTEXT(XM |
| 1, 0}; | 1, 0}; |
| PCCORE pccore = {250, 0, 1, 0}; | PCCORE pccore = {250, 0, 1, 0}; |
| CORESTAT corestat; | |
| BYTE mMAIN[0x10000]; | BYTE mMAIN[0x10000]; |
| BYTE mBIOS[0x8000]; | BYTE mBIOS[0x8000]; |
| BYTE mBANK[16][0x8000]; | BYTE mBANK[16][0x8000]; |
| Line 39 const OEMCHAR xmilversion[] = OEMTEXT(XM | Line 40 const OEMCHAR xmilversion[] = OEMTEXT(XM |
| BYTE *RAM0r; | BYTE *RAM0r; |
| BYTE *RAM0w; | BYTE *RAM0w; |
| DWORD h_cntbase; | DWORD h_cntbase; |
| BRESULT soundrenewal; | |
| Line 90 BYTE reset_x1(BYTE ROM_TYPE, BYTE SOUND_ | Line 90 BYTE reset_x1(BYTE ROM_TYPE, BYTE SOUND_ |
| scrnmng_setcolormode(FALSE); | scrnmng_setcolormode(FALSE); |
| } | } |
| textdrawproc_renewal(); | |
| ipl_load(); | ipl_load(); |
| Z80_RESET(); | Z80_RESET(); |
| Line 149 void pccore_initialize(void) { | Line 148 void pccore_initialize(void) { |
| void pccore_reset(void) { | void pccore_reset(void) { |
| soundmng_stop(); | soundmng_stop(); |
| if (soundrenewal) { | if (corestat.soundrenewal) { |
| soundrenewal = 0; | corestat.soundrenewal = 0; |
| sndctrl_deinitialize(); | sndctrl_deinitialize(); |
| sndctrl_initialize(); | sndctrl_initialize(); |
| } | } |
| Line 206 void iptrace_out(void) { | Line 205 void iptrace_out(void) { |
| } | } |
| #endif | #endif |
| void pccore_exec(BRESULT draw) { | |
| void x1r_exec(void) { | |
| REG8 inttiming; | REG8 inttiming; |
| corestat.drawframe = draw; | |
| v_cnt = 0; | v_cnt = 0; |
| s_cnt = 0; | s_cnt = 0; |
| xmilcfg.DISPSYNC &= 1; | |
| inttiming = xmilcfg.CPU8MHz & 1; | inttiming = xmilcfg.CPU8MHz & 1; |
| while(s_cnt < 266) { | while(s_cnt < 266) { |
| Line 246 void x1r_exec(void) { | Line 244 void x1r_exec(void) { |
| v_cnt++; | v_cnt++; |
| if (crtc.s.CRT_YL == v_cnt) { | if (crtc.s.CRT_YL == v_cnt) { |
| pcg.r.vsync = 1; | pcg.r.vsync = 1; |
| if (xmilcfg.DISPSYNC == 1) { | if (xmilcfg.DISPSYNC & 1) { |
| xmilcfg.DISPSYNC |= 0x80; | |
| scrnupdate(); | scrnupdate(); |
| } | } |
| } | } |
| } | } |
| sound_sync(); | sound_sync(); |
| calendar_inc(); | calendar_inc(); |
| if (!(xmilcfg.DISPSYNC & 0x80)) { | scrnupdate(); |
| scrnupdate(); | |
| } | |
| } | } |