|
|
| version 1.4, 2004/08/03 11:01:59 | version 1.7, 2004/08/04 17:09:25 |
|---|---|
| Line 7 | Line 7 |
| #include "z80core.h" | #include "z80core.h" |
| #include "pccore.h" | #include "pccore.h" |
| #include "iocore.h" | #include "iocore.h" |
| #include "x1_io.h" | |
| #include "x1_crtc.h" | |
| #include "x1_vram.h" | |
| #include "draw.h" | #include "draw.h" |
| #include "sound.h" | #include "sound.h" |
| #include "sndctrl.h" | #include "sndctrl.h" |
| Line 58 void ipl_load(void) { | Line 55 void ipl_load(void) { |
| FILEH hdl; | FILEH hdl; |
| ZeroMemory(mBIOS, sizeof(mBIOS)); | ZeroMemory(mBIOS, sizeof(mBIOS)); |
| memcpy(mBIOS, DEFROM, sizeof(DEFROM)); | CopyMemory(mBIOS, DEFROM, sizeof(DEFROM)); |
| if (pccore.ROM_TYPE >= 2) { | if (pccore.ROM_TYPE >= 2) { |
| if ((hdl = file_open_c("IPLROM.X1T")) != FILEH_INVALID) { | if ((hdl = file_open_c(OEMTEXT("IPLROM.X1T"))) != FILEH_INVALID) { |
| file_read(hdl, mBIOS, 0x8000); | file_read(hdl, mBIOS, 0x8000); |
| file_close(hdl); | file_close(hdl); |
| } | } |
| } | } |
| else if (pccore.ROM_TYPE == 1) { | else if (pccore.ROM_TYPE == 1) { |
| if ((hdl = file_open_c("IPLROM.X1")) != FILEH_INVALID) { | if ((hdl = file_open_c(OEMTEXT("IPLROM.X1"))) != FILEH_INVALID) { |
| file_read(hdl, mBIOS, 0x8000); | file_read(hdl, mBIOS, 0x8000); |
| file_close(hdl); | file_close(hdl); |
| } | } |
| Line 120 BYTE reset_x1(BYTE ROM_TYPE, BYTE SOUND_ | Line 117 BYTE reset_x1(BYTE ROM_TYPE, BYTE SOUND_ |
| calendar_initialize(); | calendar_initialize(); |
| subcpu_reset(); | |
| ppi_reset(); | |
| init_crtc(); | |
| init_vram(); | |
| cgrom_reset(); | cgrom_reset(); |
| cmt_reset(); | cmt_reset(); |
| crtc_reset(); | |
| ctc_reset(); | ctc_reset(); |
| dmac_reset(); | dmac_reset(); |
| fdc_reset(); | fdc_reset(); |
| pcg_reset(); | pcg_reset(); |
| ppi_reset(); | |
| sio_reset(); | sio_reset(); |
| sndboard_reset(); | sndboard_reset(); |
| subcpu_reset(); | |
| vramio_reset(); | |
| timing_reset(); | timing_reset(); |
| return(SUCCESS); | return(SUCCESS); |
| Line 270 extern BYTE disp_flashscreen; | Line 266 extern BYTE disp_flashscreen; |
| } | } |
| } | } |
| v_cnt++; | v_cnt++; |
| if (crtc.CRT_YL == v_cnt) { | if (crtc.s.CRT_YL == v_cnt) { |
| // TRACEOUT(("--->sync")); | // TRACEOUT(("--->sync")); |
| pcg.r.vsync = 1; | pcg.r.vsync = 1; |
| if (xmilcfg.DISPSYNC == 1) { | if (xmilcfg.DISPSYNC == 1) { |