--- np2/bios/bios.c 2003/10/21 11:22:05 1.3 +++ np2/bios/bios.c 2003/11/22 12:49:49 1.6 @@ -6,6 +6,8 @@ #include "iocore.h" #include "bios.h" #include "biosmem.h" +#include "sound.h" +#include "fmboard.h" #include "lio.h" #include "fddfile.h" #include "fdd_mtr.h" @@ -94,6 +96,11 @@ static void bios_reinitbyswitch(void) { gdc.display |= 4; } gdcs.textdisp |= GDCSCRN_EXT; + + if ((pc.model >= PCMODEL_VX) && (usesound & 0x7e)) { + iocore_out8(0x188, 0x27); + iocore_out8(0x18a, 0x3f); + } } static void bios_vectorset(void) { // ver0.30 @@ -231,7 +238,12 @@ static void bios_boot(void) { I286_AL = 0x10; mem[0x004f8] = 0xee; // out dx, al mem[0x004f9] = 0xea; // call far +#if 1 + SETBIOSMEM32(0x004fa, 0x0000); + SETBIOSMEM32(0x004fc, 0xffff); +#else SETBIOSMEM32(0x004fa, 0xffff0000); +#endif } else { I286_SP = GETBIOSMEM16(0x00404);