|
|
| version 1.22, 2004/08/12 11:03:08 | version 1.24, 2004/08/12 14:03:14 |
|---|---|
| Line 24 | Line 24 |
| const OEMCHAR xmilversion[] = OEMTEXT(XMILVER_CORE); | const OEMCHAR xmilversion[] = OEMTEXT(XMILVER_CORE); |
| XMILCFG xmilcfg = { 2, 0, 1, | XMILCFG xmilcfg = { 2, 1, 0x03, |
| 1, 0, 0, 0, | 1, 0, 0, 0, |
| 22050, 500, 0, 0, 80, | 22050, 500, 0, 0, 80, |
| 0, 0, 0, 0}; | 0, 0, 0, 0}; |
| Line 145 void pccore_reset(void) { | Line 145 void pccore_reset(void) { |
| subcpu_reset(); | subcpu_reset(); |
| vramio_reset(); | vramio_reset(); |
| calendar_initialize(); | calendar_reset(); |
| pal_reset(); | pal_reset(); |
| makescrn_reset(); | makescrn_reset(); |
| timing_reset(); | timing_reset(); |
| Line 188 void iptrace_out(void) { | Line 188 void iptrace_out(void) { |
| #endif | #endif |
| #if 0 | |
| void nvitem_raster(UINT id) { | |
| nevent_repeat(id); | |
| sound_makesample(pcmbufsize[v_cnt]); | |
| // x1_ctc_int(); | |
| if (!((++keyintcnt) & 15)) { | |
| x1_sub_int(); | |
| if (xmilcfg.MOUSE_SW) { | |
| sio_int(); | |
| } | |
| } | |
| v_cnt++; | |
| if (crtc.s.CRT_YL == v_cnt) { | |
| pcg.r.vsync = 1; | |
| if (xmilcfg.DISPSYNC & 1) { | |
| scrnupdate(); | |
| } | |
| } | |
| } | |
| #endif | |
| UINT pccore_getraster(UINT *h) { | UINT pccore_getraster(UINT *h) { |
| SINT32 work; | SINT32 work; |
| Line 252 void pccore_exec(BRESULT draw) { | Line 230 void pccore_exec(BRESULT draw) { |
| soundmng_sync(); | soundmng_sync(); |
| corestat.tl = 266 * pccore.multiple / 2; | corestat.tl = 266 * pccore.multiple / 2; |
| corestat.vl = min(corestat.tl, crtc.s.CRT_YL); | corestat.vl = min(corestat.tl, crtc.e.dl); |
| corestat.vsync = 0; | corestat.vsync = 0; |
| nevent_set(NEVENT_FRAMES, corestat.vl * 250, | nevent_set(NEVENT_FRAMES, corestat.vl * 250, |
| nvitem_vdisp, NEVENT_RELATIVE); | nvitem_vdisp, NEVENT_RELATIVE); |
| Line 276 void pccore_exec(BRESULT draw) { | Line 254 void pccore_exec(BRESULT draw) { |
| } while(corestat.vsync < 2); | } while(corestat.vsync < 2); |
| scrnupdate(); | scrnupdate(); |
| calendar_inc(); | |
| sound_sync(); | sound_sync(); |
| } | } |