|
|
| version 1.3, 2004/08/02 13:38:46 | version 1.6, 2004/08/04 15:18:25 |
|---|---|
| Line 9 | Line 9 |
| #include "iocore.h" | #include "iocore.h" |
| #include "x1_io.h" | #include "x1_io.h" |
| #include "x1_crtc.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 38 const OEMCHAR xmilversion[] = OEMTEXT(XM | Line 37 const OEMCHAR xmilversion[] = OEMTEXT(XM |
| BYTE mMAIN[0x10000]; | BYTE mMAIN[0x10000]; |
| BYTE mBIOS[0x8000]; | BYTE mBIOS[0x8000]; |
| BYTE mBANK[16][0x8000]; | BYTE mBANK[16][0x8000]; |
| // BYTE KNJ_FNT[0x4bc00]; | |
| BYTE GRP_RAM[0x20000]; | |
| BYTE TXT_RAM[0x01800]; | |
| WORD v_cnt; | WORD v_cnt; |
| int s_cnt; | int s_cnt; |
| Line 61 void ipl_load(void) { | Line 57 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 126 BYTE reset_x1(BYTE ROM_TYPE, BYTE SOUND_ | Line 122 BYTE reset_x1(BYTE ROM_TYPE, BYTE SOUND_ |
| subcpu_reset(); | subcpu_reset(); |
| ppi_reset(); | ppi_reset(); |
| init_crtc(); | init_crtc(); |
| init_vram(); | |
| cgrom_reset(); | cgrom_reset(); |
| cmt_reset(); | cmt_reset(); |
| Line 136 BYTE reset_x1(BYTE ROM_TYPE, BYTE SOUND_ | Line 131 BYTE reset_x1(BYTE ROM_TYPE, BYTE SOUND_ |
| pcg_reset(); | pcg_reset(); |
| sio_reset(); | sio_reset(); |
| sndboard_reset(); | sndboard_reset(); |
| vramio_reset(); | |
| timing_reset(); | timing_reset(); |
| return(SUCCESS); | return(SUCCESS); |