|
|
| version 1.29, 2004/01/23 06:03:40 | version 1.31, 2004/01/23 15:05:04 |
|---|---|
| Line 6 | Line 6 |
| #include "bios.h" | #include "bios.h" |
| #include "biosmem.h" | #include "biosmem.h" |
| #include "sxsibios.h" | #include "sxsibios.h" |
| #include "sound.h" | |
| #include "fmboard.h" | |
| #include "lio.h" | #include "lio.h" |
| #include "fddfile.h" | #include "fddfile.h" |
| #include "fdd_mtr.h" | #include "fdd_mtr.h" |
| Line 50 static void bios_reinitbyswitch(void) { | Line 48 static void bios_reinitbyswitch(void) { |
| SETBIOSMEM16(0x00486, CPU_DX); | SETBIOSMEM16(0x00486, CPU_DX); |
| #endif | #endif |
| if (!(np2cfg.dipsw[2] & 0x80)) { | |
| #if defined(CPUCORE_IA32) | |
| mem[MEMB_SYS_TYPE] = 0x02; // 80386กม | |
| #else | |
| mem[MEMB_SYS_TYPE] = 0x01; // 80286 | |
| #endif | |
| } | |
| else { | |
| mem[MEMB_SYS_TYPE] = 0x00; // V30 | |
| } | |
| mem[MEMB_BIOS_FLAG0] = 0x01; | mem[MEMB_BIOS_FLAG0] = 0x01; |
| CPU_TYPE = 0; | CPU_TYPE = 0; |
| prxcrt = 0x48; // ver0.74 | prxcrt = 0x48; // ver0.74 |
| Line 99 static void bios_reinitbyswitch(void) { | Line 108 static void bios_reinitbyswitch(void) { |
| } | } |
| gdcs.textdisp |= GDCSCRN_EXT; | gdcs.textdisp |= GDCSCRN_EXT; |
| if (((pccore.model & PCMODELMASK) >= PCMODEL_VX) && (usesound & 0x7e)) { | if (((pccore.model & PCMODELMASK) >= PCMODEL_VX) && |
| (pccore.sound & 0x7e)) { | |
| iocore_out8(0x188, 0x27); | iocore_out8(0x188, 0x27); |
| iocore_out8(0x18a, 0x3f); | iocore_out8(0x18a, 0x3f); |
| } | } |
| Line 120 static void bios_reinitbyswitch(void) { | Line 130 static void bios_reinitbyswitch(void) { |
| // IDE initialize | // IDE initialize |
| if (pccore.hddif & PCHDD_IDE) { | if (pccore.hddif & PCHDD_IDE) { |
| mem[MEMB_SYS_TYPE] |= 0x80; // IDE | |
| CPU_AX = 0x8300; | CPU_AX = 0x8300; |
| sasibios_operate(); | sasibios_operate(); |
| } | } |